NEW 16973
Shift+Return doesn't produce BR elements in a contentEditable area.
https://bugs.webkit.org/show_bug.cgi?id=16973
Summary Shift+Return doesn't produce BR elements in a contentEditable area.
Johan "Spocke" Sörlin
Reported Tuesday, January 22, 2008 6:34:20 PM UTC
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.
Attachments
Mark Rowe (bdash)
Comment 1 Wednesday, January 23, 2008 2:03:20 AM UTC
*** Bug 16974 has been marked as a duplicate of this bug. ***
mitz
Comment 2 Wednesday, January 23, 2008 5:01:05 AM UTC
See also bug 13959.
Tom Gilder
Comment 3 Monday, March 10, 2008 3:07:28 AM UTC
On OS X, Ctrl+Return inserts a <br>. No key combination seems to on Windows, though.
Gerald Cornish
Comment 4 Friday, March 21, 2008 7:12:55 PM UTC
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
Graham Perrin
Comment 5 Tuesday, May 27, 2008 3:16:46 AM UTC
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).)
Moxiecode Systems
Comment 6 Saturday, March 26, 2011 2:59:37 PM UTC
This once can be closed. I can no longer reproduce it.
Alexey Proskuryakov
Comment 7 Sunday, March 27, 2011 6:12:59 AM UTC
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.
Ryosuke Niwa
Comment 8 Sunday, March 27, 2011 7:23:35 AM UTC
(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?
Mike Sherov
Comment 9 Wednesday, November 4, 2015 11:37:24 PM UTC
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?
Note You need to log in before you can comment on or make changes to this bug.