handsontable icon indicating copy to clipboard operation
handsontable copied to clipboard

Up and down take out us of the editor

Open singhalavi opened this issue 13 years ago • 2 comments

Steps to reproduce: Double click a cell in second row with some large text(2-3 lines) Press Up arrow ->rather than going to upper line in the editor, it takes us out of edit mode.

singhalavi avatar Apr 26 '13 12:04 singhalavi

To fix this problem:- I had to call event.stopImmediatePropagation(); instead of that.finishEditing(false); in HandsontableTextEditorClass.prototype.bindEvents function:-

if (event.keyCode === 17 || event.keyCode === 224 || event.keyCode === 91 || event.keyCode === 93) { //when CTRL or its equivalent is pressed and cell is edited, don't prepare selectable text in textarea event.stopImmediatePropagation(); return; }

singhalavi avatar May 02 '13 13:05 singhalavi

For further information please follow https://github.com/handsontable/handsontable/issues/2182

AMBudnik avatar Apr 22 '15 11:04 AMBudnik