<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>16973</bug_id>
          
          <creation_ts>2008-01-22 10:34:20 -0800</creation_ts>
          <short_desc>Shift+Return doesn&apos;t produce BR elements in a contentEditable area.</short_desc>
          <delta_ts>2015-11-04 15:37:24 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://tinymce.moxiecode.com/safari/shift_return.htm</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>6627</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Johan &quot;Spocke&quot; Sörlin">spocke</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alexander.steitz</cc>
    
    <cc>ap</cc>
    
    <cc>geraldcornish</cc>
    
    <cc>grahamperrin</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>mike.sherov</cc>
    
    <cc>mitz</cc>
    
    <cc>rniwa</cc>
    
    <cc>spam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67955</commentid>
    <comment_count>0</comment_count>
    <who name="Johan &quot;Spocke&quot; Sörlin">spocke</who>
    <bug_when>2008-01-22 10:34:20 -0800</bug_when>
    <thetext>WebKit doesn&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67996</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-01-22 18:03:20 -0800</bug_when>
    <thetext>*** Bug 16974 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68005</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-01-22 21:01:05 -0800</bug_when>
    <thetext>See also bug 13959.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73157</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Gilder">tom</who>
    <bug_when>2008-03-09 19:07:28 -0700</bug_when>
    <thetext>On OS X, Ctrl+Return inserts a &lt;br&gt;. 

No key combination seems to on Windows, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74656</commentid>
    <comment_count>4</comment_count>
    <who name="Gerald Cornish">geraldcornish</who>
    <bug_when>2008-03-21 11:12:55 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81562</commentid>
    <comment_count>5</comment_count>
    <who name="Graham Perrin">grahamperrin</who>
    <bug_when>2008-05-26 19:16:46 -0700</bug_when>
    <thetext>Whether 
control-return 
is a norm in Mac OS X, I don&apos;t know. 

(I&apos;m reminded that alt-spacebar is the norm for a non-breaking space but in Kupu I can&apos;t find any key combination for a non-breaking space (that&apos;s a separate issue).)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>373892</commentid>
    <comment_count>6</comment_count>
    <who name="Moxiecode Systems">spam</who>
    <bug_when>2011-03-26 06:59:37 -0700</bug_when>
    <thetext>This once can be closed. I can no longer reproduce it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374048</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-03-26 22:12:59 -0700</bug_when>
    <thetext>Testing with a Mac nightly, I see that Ctrl+Return produces a &lt;BR&gt;, while Shift+Return produces a nested &lt;div&gt;. I don&apos;t know if that&apos;s correct behavior.

But sounds like this bug was actually about Windows Safari? The platform/OS fields don&apos;t make it clear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374057</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-03-26 23:23:35 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Testing with a Mac nightly, I see that Ctrl+Return produces a &lt;BR&gt;, while Shift+Return produces a nested &lt;div&gt;. I don&apos;t know if that&apos;s correct behavior.

Chrome uses Shift+Return for &lt;br&gt; on Mac as well as on Windows.  Maybe this is a Safari Mac port bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1139467</commentid>
    <comment_count>9</comment_count>
    <who name="Mike Sherov">mike.sherov</who>
    <bug_when>2015-11-04 15:37:24 -0800</bug_when>
    <thetext>As of this writing, Safari on Yosemite produces `&lt;p&gt;&lt;br&gt;&lt;/p&gt;` instead of `&lt;br&gt;` (which is the behavior of the other browsers.

Is this expected? Is there any chance of this being fixed soon?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>