WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2008-01-22 18:03:20 PST
***
Bug 16974
has been marked as a duplicate of this bug. ***
mitz
Comment 2
2008-01-22 21:01:05 PST
See also
bug 13959
.
Tom Gilder
Comment 3
2008-03-09 19:07:28 PDT
On OS X, Ctrl+Return inserts a <br>. No key combination seems to on Windows, though.
Gerald Cornish
Comment 4
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
Graham Perrin
Comment 5
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).)
Moxiecode Systems
Comment 6
2011-03-26 06:59:37 PDT
This once can be closed. I can no longer reproduce it.
Alexey Proskuryakov
Comment 7
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.
Ryosuke Niwa
Comment 8
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?
Mike Sherov
Comment 9
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?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug