Define behavior for Shift-Enter
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Thu, 28 Jul 2011 14:32:44 -0600
changeset 468 051704af5cea
parent 467 c3373a5e3efe
child 469 70866da14d70
Define behavior for Shift-Enter

Apparently I forgot to do this, oops.
editing.html
source.html
--- a/editing.html	Thu Jul 28 14:13:58 2011 -0600
+++ b/editing.html	Thu Jul 28 14:32:44 2011 -0600
@@ -7501,11 +7501,18 @@
 that should be left up to platform behavior, please say so.
 
 <p>When the user instructs the user agent to insert a line break inside an
-<a href=#editing-host>editing host</a>, such as by pressing the Return key while the cursor
+<a href=#editing-host>editing host</a>, such as by pressing the Enter key while the cursor
 is in an <a href=#editable>editable</a> <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node title=concept-node>node</a>, the user agent must take the
 <a href=#action>action</a> for <a href=#the-insertparagraph-command>the <code title="">insertParagraph</code>
 command</a>.
 
+<p>When the user instructs the user agent to insert a line break inside an
+<a href=#editing-host>editing host</a> without breaking out of the current block, such as by
+pressing Shift-Enter or Option-Enter while the cursor is in an
+<a href=#editable>editable</a> <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node title=concept-node>node</a>, the user agent must take the
+<a href=#action>action</a> for <a href=#the-insertlinebreak-command>the <code title="">insertLineBreak</code>
+command</a>.
+
 <p>When the user instructs the user agent to delete the previous character
 inside an <a href=#editing-host>editing host</a>, such as by pressing the Backspace key
 while the cursor is in an <a href=#editable>editable</a> <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node title=concept-node>node</a>, the user agent must
--- a/source.html	Thu Jul 28 14:13:58 2011 -0600
+++ b/source.html	Thu Jul 28 14:32:44 2011 -0600
@@ -7518,11 +7518,18 @@
 that should be left up to platform behavior, please say so.
 
 <p>When the user instructs the user agent to insert a line break inside an
-<span>editing host</span>, such as by pressing the Return key while the cursor
+<span>editing host</span>, such as by pressing the Enter key while the cursor
 is in an <span>editable</span> [[node]], the user agent must take the
 <span>action</span> for <span>the <code title>insertParagraph</code>
 command</span>.
 
+<p>When the user instructs the user agent to insert a line break inside an
+<span>editing host</span> without breaking out of the current block, such as by
+pressing Shift-Enter or Option-Enter while the cursor is in an
+<span>editable</span> [[node]], the user agent must take the
+<span>action</span> for <span>the <code title>insertLineBreak</code>
+command</span>.
+
 <p>When the user instructs the user agent to delete the previous character
 inside an <span>editing host</span>, such as by pressing the Backspace key
 while the cursor is in an <span>editable</span> [[node]], the user agent must