Opened 11 years ago
Closed 11 years ago
#11302 closed bug (cantfix)
ctrlKey is set to true if you use ALT+<key> in Chrome for keypress and keydown events
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In Chrome and Safari on Windows both ctrlKey and altKey are set to true if you use only ALT+<key> combination (they are used for special characters like ą (alt+a) or ł (alt+l) on Polish Keyboard or @ (ALT+Q) on German keyboard.
You can see this on api pages: http://api.jquery.com/keypress/ http://api.jquery.com/keydown/
Chrome (16.0.912.77 m) and Safari 3.2.2 on WinXP
Change History (4)
comment:1 follow-up: 3 Changed 11 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 11 years ago by
This is Webkit bug http://jsfiddle.net/R25DR/ to see it you need to change kayboard to Polish (or German probably), because event is fired only when chacter is inserted.
comment:3 Changed 11 years ago by
Both are set to true in Chrome. I add comment without using jQuery. as I have written you need polish keyboard and Chrome, I spot this because someone that use German keyboard can insert @ (ALT+Q) on Webkit+WinXP https://github.com/jcubic/jquery.terminal/issues/17
comment:4 Changed 11 years ago by
Resolution: | → cantfix |
---|---|
Status: | pending → closed |
If they are both true then it is not a jQuery bug. You will need to file a report with Chrome.
I don't see this happening. Try this test case:
http://jsfiddle.net/Ftk2Q/
Do the lines labeled 1 and 2 look the same for each keypress? If so then Webkit is reporting the information to us incorrectly and there is nothing we can do.