#15184 closed bug (worksforme)
IE alt Keyup event not being recognized
Reported by: | crazedmeph | Owned by: | crazedmeph |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | event | Version: | 1.11.1 |
Keywords: | IE Keyup | Cc: | |
Blocked by: | Blocking: |
Description
If you hold alt + any key and let go of that key you will see that key gives a "keyUp event" then let go of alt and the alt keyup event is not fired. Chrome and firefox works perfect. I have used version 1.11.1 and 1.10.1 both are not working on IE.
Steps to test.
1) click fiddle link 2) open console 3) hold alt and press L (or any key) 4) let go of L and see the keyup event 5) let go of alt and make sure the keyup event is fired.
Change History (6)
comment:1 Changed 9 years ago by
Owner: | set to crazedmeph |
---|---|
Status: | new → pending |
comment:2 Changed 9 years ago by
Status: | pending → new |
---|
It does not work on IE10, I have not tried it on IE11 tho.
comment:3 Changed 9 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Are you testing on Browserstack? I don't see the same results there, even in IE11, probably because some combination of Chrome (the browser I'm hosting on), Flash (the code that remotes the browser), or some other plumbing is blocking Alt-key presses. You can tell they are not getting to jQuery so there isn't much we can do: http://jsfiddle.net/heL9V/3/
Since I did get it to work in native IE11 I'll close this as worksforme, but if you see some situation where jQuery isn't delivering the native event let us know.
comment:4 Changed 9 years ago by
I just used Browserstack. Same results for IE11 and IE10. Are you doing my test steps? If you click alt by itself, you see a keyup and a keydown being fired for the alt key "18" but if you hold the alt key and press another button you will never see the alt key "18" fire a keyup event. (You do see a keydown event) So this appears that the alt key is always being held down. However, chrome does indeed work, chrome and firefox work perfectly. All of IE does not appear to work. Make sure you do my test steps exactly as it says and see if a keyup event (for that key code 18) is being fired.
comment:5 Changed 9 years ago by
Yes I am doing your steps. I don't even see the Alt event when using Browserstack.
Do you see the "native" messages? If not, jQuery is not at fault.
comment:6 Changed 9 years ago by
Ahh I see what you are saying. This is IE issue not JQuery. I did not understand you at first. Ok! Thanks!!
Worksforme in IE11. What version did you mean?
Also note that Alt-key combinations can be "stolen" by the browser or plugins so they may not be seen by your code.