Keytables and editor, change position in cell when editing on arrow key press

Keytables and editor, change position in cell when editing on arrow key press

BusterenBusteren Posts: 52Questions: 17Answers: 4

Is it possible to change the position in the cell that is editing (say you have a name "Charlie" and you are between C and h, then press the right key arrow and then the position changes to between h and a).
And when a cell is not inline editing, then the keytable function as normal.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin
    Answer ✓

    At the moment what you'll need to do is use:

    editor.on( 'open', function () {
      table.keys.disable();
    } );
    
    editor.on( 'close', function () {
      table.keys.enable();
    } );
    

    That should do it.

    I'm going to make that a built in option in future.

    Allan

  • BusterenBusteren Posts: 52Questions: 17Answers: 4

    Thank you allan, great answer as always :)

  • BusterenBusteren Posts: 52Questions: 17Answers: 4

    I noticed that if there exists input and you for example hit the enter key, it won't work, as it will select all and you can still navigate with the keys (it only works when you actually click on the cell). I think that would be a great future!

This discussion has been closed.