From 58917f50153e7fd0f7367cc1ac23741d30c57dc3 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Wed, 20 Jun 2012 13:52:27 -0700 Subject: [PATCH] When there is a selection range, pressing arrow keys should not remove the selection in Firefox. Change-Id: I93bca05dd0f37fd8f87eba3f407a68c922ed66e3 --- modules/ve/ce/ve.ce.Surface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve/ce/ve.ce.Surface.js b/modules/ve/ce/ve.ce.Surface.js index a8fe100b65..629540aee7 100644 --- a/modules/ve/ce/ve.ce.Surface.js +++ b/modules/ve/ce/ve.ce.Surface.js @@ -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(