Override arrow action on DataGrid controls
Posted: Sat Jan 23, 2021 3:53 pm
I am building a user interface that includes two DataGrid form components in a card. I would like to use "on arrowKey" at the card level to trigger some specific actions. However, whenever the user hits an arrow Up or Down, the DataGrid component also acts on the message (by highlighting the previous or next row). I would like to disable / intercept / override this arrow action on the DataGrid.
I have tried a couple things, without success.
1) I put an "on arrowKey" handler on the Group that contains the DataGrid with a script line of 'pass arrowKey'
2) I put an "on arrowKey" handler on the Group that contains the DataGrid with a script line of 'send "arrowKey pKey" to the current card"
While I'd hoped these would handle the message and prevent it from being handled by the DataGrid, they did nothing. The DataGrid continues to move previous row or next row when the Up/Down arrow keys are pressed.
Any suggestions on how I can override the arrow key behavior on DataGrid forms?
Thank you!!
I have tried a couple things, without success.
1) I put an "on arrowKey" handler on the Group that contains the DataGrid with a script line of 'pass arrowKey'
2) I put an "on arrowKey" handler on the Group that contains the DataGrid with a script line of 'send "arrowKey pKey" to the current card"
While I'd hoped these would handle the message and prevent it from being handled by the DataGrid, they did nothing. The DataGrid continues to move previous row or next row when the Up/Down arrow keys are pressed.
Any suggestions on how I can override the arrow key behavior on DataGrid forms?
Thank you!!