KeyTable - editorKeys not working when inline editor opened with mouse
KeyTable - editorKeys not working when inline editor opened with mouse
We are using KeyTable extension along with the Editor extension. We would like to disable arrow keys navigation between cells when inline editor is opened, so user can move the cursor withing the text input using arrow keys.
We tried to initialize the KeyTable exntesion with setting: editorKeys: 'tab-only'
. The arrow keys are properly disabled, when the inline editor is opened using the 'Enter' key. However, when we open it using a mouse click, arrow key navigation is not disabled. One would expect the same behaviour no matter the way the inline editor was opened, when we use the tab-only
setting.
Answers
Hi,
Use
keys.editOnFocus
in Editor to do that now. KeyTable now has two modes - just focus (the blue ring) and a "hard editing" mode (orange ring). The arrow key behaviour is different between them - with blue focus the arrow keys will move the cell focus. In orange focus the arrow keys will move the cursor in the textbox.Allan
Hi @Radoslav Konuch ,
This example here may also help - it shows how double-clicking with the mouse gets you into edit mode.
Cheers,
Colin