Side navigation
#10247 closed bug (invalid)
Opened September 10, 2011 06:59PM UTC
Closed September 25, 2011 07:48AM UTC
Pressing the CTRL and any other key prevents .keydown() and .keyup() from capturing events.
Reported by: | Robert@ThinkTankDesign.ca | Owned by: | Robert@ThinkTankDesign.ca |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | event | Version: | 1.6.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I've been working on a library for my game engine Red Locomotive to allow game developers to bind to the hole keyboard. I've been successful, but have noticed a problem with jQuery.
If i press and hold the CTRL key, then any other key, the keydown function stops capturing keydown events. Then when I release the CTRL key the keyup event for the CTRL key never fires.
Attachments (0)
Change History (4)
Changed September 10, 2011 07:16PM UTC by comment:1
component: | unfiled → event |
---|---|
owner: | → Robert@ThinkTankDesign.ca |
priority: | undecided → low |
status: | new → pending |
Changed September 10, 2011 07:21PM UTC by comment:2
Here is a jsFiddle that can be used to reproduce the bug: http://jsfiddle.net/M93tR/1/
Changed September 10, 2011 08:51PM UTC by comment:3
I do see that behavior with key combos that correspond to some browser hotkeys, for example ctrl-n
, but not with ctrl-a
for example. If the behavior you see is consistent with this description, then it's not something jQuery would be able to fix since the browser is not delivering key data we can detect: http://unixpapa.com/js/key.html
If you write this in pure DOM does the problem persist?
Changed September 25, 2011 07:48AM UTC by comment:4
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.