Bug 16973 - Shift+Return doesn't produce BR elements in a contentEditable area.
Summary: Shift+Return doesn't produce BR elements in a contentEditable area.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL: http://tinymce.moxiecode.com/safari/s...
Keywords:
: 16974 (view as bug list)
Depends on:
Blocks: 6627
  Show dependency treegraph
 
Reported: 2008-01-22 10:34 PST by Johan "Spocke" Sörlin
Modified: 2015-11-04 15:37 PST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan "Spocke" Sörlin 2008-01-22 10:34:20 PST
WebKit doesn't produce BR element on a shift+return key press. This works in all other major browsers like IE, FF and Opera.

Steps to reproduce:
1. Open the attached URL.
2. Place caret inside editable area.
3. Press shift+return.
4. Observe that nothing happens, no BR is produced.
Comment 1 Mark Rowe (bdash) 2008-01-22 18:03:20 PST
*** Bug 16974 has been marked as a duplicate of this bug. ***
Comment 2 mitz 2008-01-22 21:01:05 PST
See also bug 13959.
Comment 3 Tom Gilder 2008-03-09 19:07:28 PDT
On OS X, Ctrl+Return inserts a <br>. 

No key combination seems to on Windows, though.
Comment 4 Gerald Cornish 2008-03-21 11:12:55 PDT
This problem does NOT occur on my Pismo (10.4.11) using Firefox 3beta, Netscape 7.02, Omniweb 5.6, Navigator 9.0.0.6, iCab 3.0.5, iCab 4.0.1
Comment 5 Graham Perrin 2008-05-26 19:16:46 PDT
Whether 
control-return 
is a norm in Mac OS X, I don't know. 

(I'm reminded that alt-spacebar is the norm for a non-breaking space but in Kupu I can't find any key combination for a non-breaking space (that's a separate issue).)
Comment 6 Moxiecode Systems 2011-03-26 06:59:37 PDT
This once can be closed. I can no longer reproduce it.
Comment 7 Alexey Proskuryakov 2011-03-26 22:12:59 PDT
Testing with a Mac nightly, I see that Ctrl+Return produces a <BR>, while Shift+Return produces a nested <div>. I don't know if that's correct behavior.

But sounds like this bug was actually about Windows Safari? The platform/OS fields don't make it clear.
Comment 8 Ryosuke Niwa 2011-03-26 23:23:35 PDT
(In reply to comment #7)
> Testing with a Mac nightly, I see that Ctrl+Return produces a <BR>, while Shift+Return produces a nested <div>. I don't know if that's correct behavior.

Chrome uses Shift+Return for <br> on Mac as well as on Windows.  Maybe this is a Safari Mac port bug?
Comment 9 Mike Sherov 2015-11-04 15:37:24 PST
As of this writing, Safari on Yosemite produces `<p><br></p>` instead of `<br>` (which is the behavior of the other browsers.

Is this expected? Is there any chance of this being fixed soon?