Summary: | Cmd-B and Cmd-I events cannot be overriden by JavaScript in editor mode. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Martin Kou <martin> | ||||
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | ap, ayg, davidr, dpopa, eric, mitz | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
Martin Kou
2008-04-23 00:17:38 PDT
Created attachment 20765 [details]
Test case
This issue is causing the bug https://dev.fckeditor.net/ticket/1701 in FCKeditor. Confirmed with r32635. IE allows JavaScript to cancel default processing for these events. Similarly perhaps, Command-I cannot be used in Safari to invoke the Mail Contents of This Page command when in editable text (<rdar://problem/5845299>). *** Bug 25604 has been marked as a duplicate of this bug. *** I looked into this a little yesterday. We're short-circuiting handling of these events. I didn't quite know how to hook into the NSResponder/NSTextField model in order to process the key events at the right time however. It seems we might have to implement our own processKeyEvents: which is called from the EditorClient handleKeyEvent callback. I should post actual stack traces in the bug for more intelligent discussion. |