mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
When there is a selection range, pressing arrow keys should not remove the selection in Firefox.
Change-Id: I93bca05dd0f37fd8f87eba3f407a68c922ed66e3
This commit is contained in:
parent
1e12f61dd1
commit
58917f5015
|
@ -249,7 +249,7 @@ ve.ce.Surface.prototype.onKeyPress = function( e ) {
|
|||
}
|
||||
}
|
||||
|
||||
if ( selection.getLength() > 0 ) {
|
||||
if ( selection.getLength() > 0 && e.which !== 0 ) {
|
||||
this.stopPolling();
|
||||
this.model.change(
|
||||
ve.dm.Transaction.newFromRemoval(
|
||||
|
|
Loading…
Reference in a new issue