Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368437

Summary: [KeyEvents] In Webkit, KeyEvents are not fired if listed in CANCEL_KEYS
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Tim Buschtoens CLA 2012-01-12 06:11:39 EST
When adding a key-sequence to CANCEL_KEYS, chrome wont send key events for those anymore. The reason is that the key events are fired on keypress, and keypress is not fired if keydown was canceled. IE had the same issue, which was fixed by not calling preventDefault on keydown events in KeyEventSupport.js. For KeyEvents canceled elsewhere, see Bug 366788.
Comment 1 Tim Buschtoens CLA 2012-01-12 06:29:22 EST
Fixed in HEAD.

Unlike IE, in chrome keypresses are also prevented if event.returnValue on keydown is set to false.