I noticed that when you press and hold a letter key like A the keydown event is fired continuously as long as you hold it. However when you press and hold down shift, the event is fired only once. I want to base my application logic on that observation, but I don't know if it is a standard behavior in every browser. Can anyone confirm?
Keydown event behavior when holding down Shift key
924 Views Asked by Maciej Kravchyk At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Only 'Title' menu while creating new page. Install Wagtail
- django/wagtail template errors
- How to reuse common Wagtail Page objects (streamfields, edit_handler, content_panels)
- Modifying the Wagtail publish dropdown (per app)
- Looking for wagtail modeladmin PermissionHelper example
- Django Wagtail CMS slugurl and pageurl not working - link returns 'None'
- Wagtail: Create registration page with e-mail and verify
- Wagtail - display the three latest posts only on the homepage
- New root page in wagtail
- CSS Link Static Page
Related Questions in EVENTS
- Only 'Title' menu while creating new page. Install Wagtail
- django/wagtail template errors
- How to reuse common Wagtail Page objects (streamfields, edit_handler, content_panels)
- Modifying the Wagtail publish dropdown (per app)
- Looking for wagtail modeladmin PermissionHelper example
- Django Wagtail CMS slugurl and pageurl not working - link returns 'None'
- Wagtail: Create registration page with e-mail and verify
- Wagtail - display the three latest posts only on the homepage
- New root page in wagtail
- CSS Link Static Page
Related Questions in KEYBOARD
- Only 'Title' menu while creating new page. Install Wagtail
- django/wagtail template errors
- How to reuse common Wagtail Page objects (streamfields, edit_handler, content_panels)
- Modifying the Wagtail publish dropdown (per app)
- Looking for wagtail modeladmin PermissionHelper example
- Django Wagtail CMS slugurl and pageurl not working - link returns 'None'
- Wagtail: Create registration page with e-mail and verify
- Wagtail - display the three latest posts only on the homepage
- New root page in wagtail
- CSS Link Static Page
Related Questions in DOM-EVENTS
- Only 'Title' menu while creating new page. Install Wagtail
- django/wagtail template errors
- How to reuse common Wagtail Page objects (streamfields, edit_handler, content_panels)
- Modifying the Wagtail publish dropdown (per app)
- Looking for wagtail modeladmin PermissionHelper example
- Django Wagtail CMS slugurl and pageurl not working - link returns 'None'
- Wagtail: Create registration page with e-mail and verify
- Wagtail - display the three latest posts only on the homepage
- New root page in wagtail
- CSS Link Static Page
Related Questions in KEYDOWN
- Only 'Title' menu while creating new page. Install Wagtail
- django/wagtail template errors
- How to reuse common Wagtail Page objects (streamfields, edit_handler, content_panels)
- Modifying the Wagtail publish dropdown (per app)
- Looking for wagtail modeladmin PermissionHelper example
- Django Wagtail CMS slugurl and pageurl not working - link returns 'None'
- Wagtail: Create registration page with e-mail and verify
- Wagtail - display the three latest posts only on the homepage
- New root page in wagtail
- CSS Link Static Page
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Unfortunately, this is not a standard behaviour that you can rely on. I did a quick test on a few browsers I had installed (IE Edge, IE 11, Chrome 55, all on a windows machine), where all 3 browsers auto-repeated the keydown event for both letter keys (like
A
), and modifier keys (likeshift
), contrary to what you state your browser does.Consistent handling of keyboard events has always been difficult across different browsers, as documented by Jan Wolter here and Peter-Paul Koch here. Wolter writes about auto-repeat:
then Wolter goes on to list various exceptions to this.