Bug 21436 - ctrl+enter doesn't insert <br> in a contentEditable list
Summary: ctrl+enter doesn't insert <br> in a contentEditable list
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.smilecms.com/webkit/list.html
Keywords: PlatformOnly
Depends on:
Blocks:
 
Reported: 2008-10-07 11:07 PDT by Ryan Perry
Modified: 2015-11-05 13:17 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Perry 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?
Comment 1 Robert Blaut 2008-12-28 23:09:24 PST
Confirmed in WebKit r39474 for Windows as PlatformOnly bug.
Comment 2 Robert Blaut 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.
Comment 3 mvijay 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



Comment 4 Mike Sherov 2015-11-05 13:17:46 PST
is this still happening?