Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -110,10 +110,6 @@ |
111 | 111 | } ); |
112 | 112 | }; |
113 | 113 | |
114 | | -es.SurfaceView.prototype.hasSelection = function() { |
115 | | - return !!this.selection.getLength(); |
116 | | -} |
117 | | - |
118 | 114 | es.SurfaceView.prototype.onMouseDown = function( e ) { |
119 | 115 | if ( e.button === 0 /* left mouse button */ ) { |
120 | 116 | this.mouse.selecting = true; |
— | — | @@ -170,7 +166,9 @@ |
171 | 167 | case 18: // Alt |
172 | 168 | this.keyboard.keys.alt = true; |
173 | 169 | break; |
174 | | - case 91: // Command |
| 170 | + case 91: // Left Command in WebKit |
| 171 | + case 93: // Right Command in WebKit |
| 172 | + case 224: // Command in FireFox |
175 | 173 | this.keyboard.keys.command = true; |
176 | 174 | break; |
177 | 175 | case 36: // Home |
— | — | @@ -223,7 +221,9 @@ |
224 | 222 | case 18: // Alt |
225 | 223 | this.keyboard.keys.alt = false; |
226 | 224 | break; |
227 | | - case 91: // Command |
| 225 | + case 91: // Left Command in WebKit |
| 226 | + case 93: // Right Command in WebKit |
| 227 | + case 224: // Command in FireFox |
228 | 228 | this.keyboard.keys.command = false; |
229 | 229 | break; |
230 | 230 | default: |