[html5] r7157 - [giow] (1) Allow platform modifier keys to affect dropEffect Affected topics: HTML

whatwg at whatwg.org whatwg at whatwg.org
Thu Jun 28 15:28:54 PDT 2012


Author: ianh
Date: 2012-06-28 15:28:53 -0700 (Thu, 28 Jun 2012)
New Revision: 7157

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Allow platform modifier keys to affect dropEffect
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2012-06-28 22:09:43 UTC (rev 7156)
+++ complete.html	2012-06-28 22:28:53 UTC (rev 7157)
@@ -77847,22 +77847,42 @@
        <th><code title=dom-DataTransfer-dropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code></th>
       </thead><tr><td>"<code title="">none</code>"</td>
       <td>"<code title="">none</code>"</td>
-     <tr><td>"<code title="">copy</code>", "<code title="">copyLink</code>", "<code title="">copyMove</code>", "<code title="">all</code>"</td>
+     <tr><td>"<code title="">copy</code>"</td>
       <td>"<code title="">copy</code>"</td>
-     <tr><td>"<code title="">link</code>", "<code title="">linkMove</code>"</td>
+     <tr><td>"<code title="">copyLink</code>"</td>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, "<code title="">link</code>"</td>
+     <tr><td>"<code title="">copyMove</code>"</td>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, "<code title="">move</code>"</td>
+     <tr><td>"<code title="">all</code>"</td>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">link</code>" or "<code title="">move</code>"</td>
+     <tr><td>"<code title="">link</code>"</td>
       <td>"<code title="">link</code>"</td>
+     <tr><td>"<code title="">linkMove</code>"</td>
+      <td>"<code title="">link</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, "<code title="">move</code>"</td>
      <tr><td>"<code title="">move</code>"</td>
       <td>"<code title="">move</code>"</td>
      <tr><td>"<code title="">uninitialized</code>" when what is being dragged is a selection from a text field</td>
-      <td>"<code title="">move</code>"</td>
+      <td>"<code title="">move</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">copy</code>" or "<code title="">link</code>"</td>
      <tr><td>"<code title="">uninitialized</code>" when what is being dragged is a selection</td>
-      <td>"<code title="">copy</code>"</td>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">link</code>" or "<code title="">move</code>"</td>
      <tr><td>"<code title="">uninitialized</code>" when what is being dragged is an <code><a href=#the-a-element>a</a></code> element with an <code>href</code> attribute</td>
-      <td>"<code title="">link</code>"</td>
+      <td>"<code title="">link</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">copy</code>" or "<code title="">move</code>"</td>
      <tr><td>Any other case</td>
-      <td>"<code title="">copy</code>"</td>
-     </table></li>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">link</code>" or "<code title="">move</code>"</td>
+     </table><p>Where the table above provides <dfn id=concept-platform-dropeffect-override title=concept-platform-dropEffect-override>possibly appropriate
+    alternatives</dfn>, user agents may instead use the listed
+    alternative values if platform conventions dictate that the user
+    has requested those alternate effects.</p>
 
+    <p class=example>For example, Windows platform conventions are
+    such that dragging while holding the "alt" key indicates a
+    preference for linking the data, rather than moving or copying it.
+    Therefore, on a Windows system, if "<code title="">link</code>" is
+    an option according to the table above while the "alt" key is
+    depressed, the user agent could select that instead of "<code title="">copy</code>" or "<code title="">move</code>.</p>
+
+   </li>
+
    <li>
 
     <p>Create a <code><a href=#dragevent>DragEvent</a></code> object and initialize it to

Modified: index
===================================================================
--- index	2012-06-28 22:09:43 UTC (rev 7156)
+++ index	2012-06-28 22:28:53 UTC (rev 7157)
@@ -77847,22 +77847,42 @@
        <th><code title=dom-DataTransfer-dropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code></th>
       </thead><tr><td>"<code title="">none</code>"</td>
       <td>"<code title="">none</code>"</td>
-     <tr><td>"<code title="">copy</code>", "<code title="">copyLink</code>", "<code title="">copyMove</code>", "<code title="">all</code>"</td>
+     <tr><td>"<code title="">copy</code>"</td>
       <td>"<code title="">copy</code>"</td>
-     <tr><td>"<code title="">link</code>", "<code title="">linkMove</code>"</td>
+     <tr><td>"<code title="">copyLink</code>"</td>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, "<code title="">link</code>"</td>
+     <tr><td>"<code title="">copyMove</code>"</td>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, "<code title="">move</code>"</td>
+     <tr><td>"<code title="">all</code>"</td>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">link</code>" or "<code title="">move</code>"</td>
+     <tr><td>"<code title="">link</code>"</td>
       <td>"<code title="">link</code>"</td>
+     <tr><td>"<code title="">linkMove</code>"</td>
+      <td>"<code title="">link</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, "<code title="">move</code>"</td>
      <tr><td>"<code title="">move</code>"</td>
       <td>"<code title="">move</code>"</td>
      <tr><td>"<code title="">uninitialized</code>" when what is being dragged is a selection from a text field</td>
-      <td>"<code title="">move</code>"</td>
+      <td>"<code title="">move</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">copy</code>" or "<code title="">link</code>"</td>
      <tr><td>"<code title="">uninitialized</code>" when what is being dragged is a selection</td>
-      <td>"<code title="">copy</code>"</td>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">link</code>" or "<code title="">move</code>"</td>
      <tr><td>"<code title="">uninitialized</code>" when what is being dragged is an <code><a href=#the-a-element>a</a></code> element with an <code>href</code> attribute</td>
-      <td>"<code title="">link</code>"</td>
+      <td>"<code title="">link</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">copy</code>" or "<code title="">move</code>"</td>
      <tr><td>Any other case</td>
-      <td>"<code title="">copy</code>"</td>
-     </table></li>
+      <td>"<code title="">copy</code>", or, <a href=#concept-platform-dropeffect-override title=concept-platform-dropEffect-override>if appropriate</a>, either "<code title="">link</code>" or "<code title="">move</code>"</td>
+     </table><p>Where the table above provides <dfn id=concept-platform-dropeffect-override title=concept-platform-dropEffect-override>possibly appropriate
+    alternatives</dfn>, user agents may instead use the listed
+    alternative values if platform conventions dictate that the user
+    has requested those alternate effects.</p>
 
+    <p class=example>For example, Windows platform conventions are
+    such that dragging while holding the "alt" key indicates a
+    preference for linking the data, rather than moving or copying it.
+    Therefore, on a Windows system, if "<code title="">link</code>" is
+    an option according to the table above while the "alt" key is
+    depressed, the user agent could select that instead of "<code title="">copy</code>" or "<code title="">move</code>.</p>
+
+   </li>
+
    <li>
 
     <p>Create a <code><a href=#dragevent>DragEvent</a></code> object and initialize it to

Modified: source
===================================================================
--- source	2012-06-28 22:09:43 UTC (rev 7156)
+++ source	2012-06-28 22:28:53 UTC (rev 7157)
@@ -91112,35 +91112,65 @@
       <td>"<code title="">none</code>"</td>
      </tr>
      <tr>
-      <td>"<code title="">copy</code>", "<code title="">copyLink</code>", "<code title="">copyMove</code>", "<code title="">all</code>"</td>
       <td>"<code title="">copy</code>"</td>
+      <td>"<code title="">copy</code>"</td>
      </tr>
      <tr>
-      <td>"<code title="">link</code>", "<code title="">linkMove</code>"</td>
+      <td>"<code title="">copyLink</code>"</td>
+      <td>"<code title="">copy</code>", or, <span title="concept-platform-dropEffect-override">if appropriate</span>, "<code title="">link</code>"</td>
+     </tr>
+     <tr>
+      <td>"<code title="">copyMove</code>"</td>
+      <td>"<code title="">copy</code>", or, <span title="concept-platform-dropEffect-override">if appropriate</span>, "<code title="">move</code>"</td>
+     </tr>
+     <tr>
+      <td>"<code title="">all</code>"</td>
+      <td>"<code title="">copy</code>", or, <span title="concept-platform-dropEffect-override">if appropriate</span>, either "<code title="">link</code>" or "<code title="">move</code>"</td>
+     </tr>
+     <tr>
       <td>"<code title="">link</code>"</td>
+      <td>"<code title="">link</code>"</td>
      </tr>
      <tr>
+      <td>"<code title="">linkMove</code>"</td>
+      <td>"<code title="">link</code>", or, <span title="concept-platform-dropEffect-override">if appropriate</span>, "<code title="">move</code>"</td>
+     </tr>
+     <tr>
       <td>"<code title="">move</code>"</td>
       <td>"<code title="">move</code>"</td>
      </tr>
      <tr>
       <td>"<code title="">uninitialized</code>" when what is being dragged is a selection from a text field</td>
-      <td>"<code title="">move</code>"</td>
+      <td>"<code title="">move</code>", or, <span title="concept-platform-dropEffect-override">if appropriate</span>, either "<code title="">copy</code>" or "<code title="">link</code>"</td>
      </tr>
      <tr>
       <td>"<code title="">uninitialized</code>" when what is being dragged is a selection</td>
-      <td>"<code title="">copy</code>"</td>
+      <td>"<code title="">copy</code>", or, <span title="concept-platform-dropEffect-override">if appropriate</span>, either "<code title="">link</code>" or "<code title="">move</code>"</td>
      </tr>
      <tr>
       <td>"<code title="">uninitialized</code>" when what is being dragged is an <code>a</code> element with an <code>href</code> attribute</td>
-      <td>"<code title="">link</code>"</td>
+      <td>"<code title="">link</code>", or, <span title="concept-platform-dropEffect-override">if appropriate</span>, either "<code title="">copy</code>" or "<code title="">move</code>"</td>
      </tr>
      <tr>
       <td>Any other case</td>
-      <td>"<code title="">copy</code>"</td>
+      <td>"<code title="">copy</code>", or, <span title="concept-platform-dropEffect-override">if appropriate</span>, either "<code title="">link</code>" or "<code title="">move</code>"</td></td>
      </tr>
     </table>
 
+    <p>Where the table above provides <dfn
+    title="concept-platform-dropEffect-override">possibly appropriate
+    alternatives</dfn>, user agents may instead use the listed
+    alternative values if platform conventions dictate that the user
+    has requested those alternate effects.</p>
+
+    <p class="example">For example, Windows platform conventions are
+    such that dragging while holding the "alt" key indicates a
+    preference for linking the data, rather than moving or copying it.
+    Therefore, on a Windows system, if "<code title="">link</code>" is
+    an option according to the table above while the "alt" key is
+    depressed, the user agent could select that instead of "<code
+    title="">copy</code>" or "<code title="">move</code>.</p>
+
    </li>
 
    <li>




More information about the Commit-Watchers mailing list