[Webkit-unassigned] [Bug 28409] keypress should be dispatched for ctrl shortcuts

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 21 17:03:18 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28409





--- Comment #8 from Erik Arvidsson <arv at chromium.org>  2009-10-21 17:03:17 PDT ---
Internet Explorer does not fire keypress when ctrl is pressed with some
exceptions. The following keys fire keypress. Some keys behave slightly
different in editable elements. 

CTRL + | keyCode | contentEditable | textarea
-------+---------+-----------------+---------
 G     |  7      | Y               | Y
 M     | 13      | Y               | Y
 U     | 21      | N               | Y
 V     | 22      | N               | N
 X     | 24      | N               | N
 Y     | 25      | N               | N
 Z     | 26      | N               | N
 [     | 27      | Y               | Y
 \     | 28      | Y               | Y
 ]     | 29      | Y               | Y
 SPACE | 30      | Y               | Y
 ENTER | 10      | Y               | Y


Safari Mac

Always fires keypress when ctrl is pressed unless focus is in an editable
element. The keyCode matches IE


Safari Windows

Never fires keypress when ctrl is pressed


Firefox Windows

Always fires keypress events. The main difference here is that Firefox returns
the charCode of the key as if ctrl was not pressed. For example Ctrl+A returns

A:      {keyCode: 0, charCode: 97, ctrlKey: false}
Ctrl+A: {keyCode: 0, charCode: 97, ctrlKey: true}

For the keys on Safari Mac we get

A:      {keyCode: 97, charCode: 97, ctrlKey: false}
Ctrl+A: {keyCode: 1, charCode: 1, ctrlKey: true}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list