Bug Tracker

Opened 7 years ago

Closed 7 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: jcubic@… Owned by: jcubic@…
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 Changed 7 years ago by dmethvin

Owner: set to jcubic@…
Status: newpending

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.

comment:2 Changed 7 years 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 7 years 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

comment:4 Changed 7 years ago by dmethvin

Resolution: cantfix
Status: pendingclosed

If they are both true then it is not a jQuery bug. You will need to file a report with Chrome.

Note: See TracTickets for help on using tickets.