Ticket #11302 (closed bug: cantfix)
ctrlKey is set to true if you use ALT+<key> in Chrome for keypress and keydown events
| Reported by: | jcubic@… | Owned by: | jcubic@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
comment:1 follow-up: ↓ 3 Changed 16 months ago by dmethvin
- Owner set to jcubic@…
- Status changed from new to pending
comment:2 Changed 16 months ago by anonymous
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 in reply to: ↑ 1 Changed 16 months ago by anonymous
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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.