KeyTable - editorKeys not working when inline editor opened with mouse

KeyTable - editorKeys not working when inline editor opened with mouse

Radoslav KonuchRadoslav Konuch Posts: 9Questions: 4Answers: 0

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

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    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

  • colincolin Posts: 15,177Questions: 1Answers: 2,590

    Hi @Radoslav Konuch ,

    This example here may also help - it shows how double-clicking with the mouse gets you into edit mode.

    Cheers,

    Colin

This discussion has been closed.