When there is a selection range, pressing arrow keys should not remove the selection in Firefox.

Change-Id: I93bca05dd0f37fd8f87eba3f407a68c922ed66e3
This commit is contained in:
Christian Williams 2012-06-20 13:52:27 -07:00 committed by Catrope
parent 1e12f61dd1
commit 58917f5015

View file

@ -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(