KeyTable-If I click in to an INPUT field the left and right arrows should traverse the text

KeyTable-If I click in to an INPUT field the left and right arrows should traverse the text

smelchersmelcher Posts: 45Questions: 13Answers: 0

I have a KeyTable table that includes some INPUT fields. If I click in to the data within in an INPUT field I would expect the left and right arrow keys to traverse the text as it normally would. Instead, if I click the left arrow it jumps to the cell to the left. Is there any to turn this off?

Answers

  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin

    You need to use the keys.enable() and keys.disable() methods (inside open and close event listeners probably).

    It doesn't do that by default so that it acts more like Excel.

    Allan

  • smelchersmelcher Posts: 45Questions: 13Answers: 0

    If I click in to a field in Excel, the cursor keys now traverse the text. The cursor keys do not jump to the next Excel. I believe that is different behavior than what I am seeing in KeyTables.

  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin

    If I click on a cell in Excel and then start typing - it replaces the content with the newly types data, and the arrow keys will move the cell focus to the corresponding adjacent cell.

    What version of Excel are you using?

    Allan

  • smelchersmelcher Posts: 45Questions: 13Answers: 0

    I just reproduced the behavior you mentioned. However, if you double click in to the cell, the left and right arrows will traverse the text. I view the double click as being similar to clicking in to the INPUT field

  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin
    edited March 2017

    I see - yes, a double click does indeed cause the behaviour you describe in Excel. That is not something that is currently supported by KeyTable. You would need to use the API methods and events that I mentioned above in order to be able to implement it.

    Regards,
    Allan

This discussion has been closed.