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: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

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:

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: →
status: newpending

I don't see this happening. Try this test case:

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 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

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.