diff --git a/modules/ve/ce/ve.ce.Surface.js b/modules/ve/ce/ve.ce.Surface.js index 33129eff2a..73b1d8f776 100644 --- a/modules/ve/ce/ve.ce.Surface.js +++ b/modules/ve/ce/ve.ce.Surface.js @@ -131,7 +131,7 @@ ve.ce.Surface.prototype.onKeyDown = function( e ) { */ // Left arrow case 37: - if ( !e.altKey && !e.shiftKey && this.model.getSelection().getLength() === 0 ) { + if ( !e.metaKey && !e.altKey && !e.shiftKey && this.model.getSelection().getLength() === 0 ) { var offset = this.model.getSelection().start; var relativeContentOffset = this.documentView.model.getRelativeContentOffset( offset, -1 ); var relativeStructuralOffset = this.documentView.model.getRelativeStructuralOffset( offset - 1, -1, true ); @@ -156,7 +156,7 @@ ve.ce.Surface.prototype.onKeyDown = function( e ) { break; // Right arrow case 39: - if ( !e.altKey && !e.shiftKey && this.model.getSelection().getLength() === 0 ) { + if ( !e.metaKey && !e.altKey && !e.shiftKey && this.model.getSelection().getLength() === 0 ) { var offset = this.model.getSelection().start; var relativeContentOffset = this.documentView.model.getRelativeContentOffset( offset, 1 ); var relativeStructuralOffset = this.documentView.model.getRelativeStructuralOffset( offset + 1, 1, true );