HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/7157

SVNBugCommentTime (UTC)
7157[Gecko] [Internet Explorer] [Opera] [Webkit] Allow platform modifier keys to affect dropEffect2012-06-28 22:28
Index: source
===================================================================
--- source	(revision 7156)
+++ source	(revision 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>

|