Bug 21436
| Summary: | ctrl+enter doesn't insert <br> in a contentEditable list | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryan Perry <rperry> |
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ayg, mike.sherov, rperry, webkit |
| Priority: | P2 | Keywords: | PlatformOnly |
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://www.smilecms.com/webkit/list.html | ||
Ryan Perry
In OS X Safari 4 DP it is Control-Enter, I can't seem to figure out how to do the same thing in Windows. Perhaps this just needs to be documented?
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Robert Blaut
Confirmed in WebKit r39474 for Windows as PlatformOnly bug.
Robert Blaut
Steps to reproduce:
1) open page: http://www.smilecms.com/webkit/list.html
2) Place cursor after "List Item three"
3) Try to insert <br> with ctrl+enter
Expected result:
Cursor should move down (Show Div innerHTML should show <br> tag)
Current result:
WebKit for Windows does nothing.
mvijay
Hi,
I have been analysing the bug and here are some of my observations:
'Shift+ Enter' is the key combination to be used for entering a <br> tag in HTML.
In WebKit\win\webview.cpp, there is an array of key press entries(keyPressEntries[]) defined.
In this array, the above said key combination is missing. So we need to add the following line to the array.
{ '\r', ShiftKey, "InsertNewline" },
This addition will insert an <br> tag.
Best Regards,
Vijay M
Mike Sherov
is this still happening?