Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Excessive keydown event usage

    Bug Reports
    2
    3
    544
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • siim
      siim last edited by

      At the moment there is keydown eventlistener for document.body.

      Windy uses arrow keys and zoom keys with this eventlistener, but other keys are mostly ignored.

      This makes impossible to change tabs using CTRL + number keys or using CTRL + F.

      Both API v4 and Windy.com is affected.

      Is it possible to not use preventDefault() for all keycodes or only use preventDefault() when windy div is focussed (tabindex)?

      1 Reply Last reply Reply Quote 1
      • ivo
        ivo Administrator last edited by

        Thx for advice

        1 Reply Last reply Reply Quote 0
        • ivo
          ivo Administrator last edited by

          The API should not listen to key events at all in my opinion

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
          NodeBB & contributors, OSM & contributors, HERE maps
          Terms and Conditions     Privacy Policy