mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Support for moving cursor with control or alt pressed down
This commit is contained in:
parent
c03e5fbc49
commit
5acd21638a
|
@ -350,7 +350,7 @@ es.SurfaceView.prototype.moveCursor = function( instruction ) {
|
|||
instruction === 'left' ? -1 : 1
|
||||
);
|
||||
|
||||
if ( this.keyboard.keys.shift && ( this.keyboard.keys.control || this.keyboard.keys.alt ) ) {
|
||||
if ( this.keyboard.keys.control || this.keyboard.keys.alt ) {
|
||||
var wordRange = this.documentView.model.getWordBoundaries(
|
||||
instruction === 'left' ? newTo : offset
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue