Skip to main content

Bug Tracker

Side navigation

#11302 closed bug (cantfix)

Opened February 07, 2012 08:46PM UTC

Closed February 07, 2012 09:13PM UTC

ctrlKey is set to true if you use ALT+<key> in Chrome for keypress and keydown events

Reported by: jcubic@onet.pl Owned by: jcubic@onet.pl
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

Attachments (0)
Change History (4)

Changed February 07, 2012 09:02PM UTC by dmethvin comment:1

owner: → jcubic@onet.pl
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.

Changed February 07, 2012 09:05PM UTC by anonymous comment:2

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.

Changed February 07, 2012 09:09PM UTC by anonymous comment:3

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

Changed February 07, 2012 09:13PM UTC by dmethvin comment:4

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.