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
smelcher
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?
This discussion has been closed.
Answers
You need to use the
keys.enable()
andkeys.disable()
methods (insideopen
andclose
event listeners probably).It doesn't do that by default so that it acts more like Excel.
Allan
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.
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
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
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