Posted 11 October 2018, 9:45 pm EST
I have a usecase where I need to pause Shortcut Key handlers for specific keys (better to pause for all keyboard keys) and resume it back again. How can I do that?
Forums Home / Spread / DataViewsJS
Posted by: pchava on 11 October 2018, 9:45 pm EST
Posted 11 October 2018, 9:45 pm EST
I have a usecase where I need to pause Shortcut Key handlers for specific keys (better to pause for all keyboard keys) and resume it back again. How can I do that?
Posted 16 October 2018, 12:53 am EST
Hello,
Spread.Views does not have KeyBoards event associated with it. You may need to handle the DOM keyboard events in code manually.
Thanks,
Deepak Sharma
Posted 16 December 2018, 7:35 pm EST
I think spread.focus(false) will stop all the navigation keyboard events
Posted 17 December 2018, 11:51 pm EST
Hello,
Spread.Views does not have a focus() method but Spread.Sheets has.
If you are working with Spread.Views you would need to handle the events(selectionchanged, focuschanged, startediting etc) manually and cancel the event.
Thanks,
Deepak Sharma
Posted 18 December 2018, 7:55 pm EST
Great. Thanks for the details.
Since we are working on Spread.Sheets, we are in that context.