NEW 21436
ctrl+enter doesn't insert <br> in a contentEditable list
https://bugs.webkit.org/show_bug.cgi?id=21436
Summary ctrl+enter doesn't insert <br> in a contentEditable list
Ryan Perry
Reported 2008-10-07 11:07:41 PDT
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
Robert Blaut
Comment 1 2008-12-28 23:09:24 PST
Confirmed in WebKit r39474 for Windows as PlatformOnly bug.
Robert Blaut
Comment 2 2008-12-28 23:13:10 PST
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
Comment 3 2009-05-20 04:17:24 PDT
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
Comment 4 2015-11-05 13:17:46 PST
is this still happening?
Note You need to log in before you can comment on or make changes to this bug.