Disable keyboard shortcuts in gridjs-spreadsheet

The “keydown” and “paste” event listeners in gridjs-spreadsheet bind to window, and are conflicting with other keyboard shortcuts we have defined in our application. In particular, gridjs-spreadsheet seems to be capturing any backspace presses, regardless of whether the spreadsheet is focused or not. Is there an option we can provide to the spreadsheet constructor to disable the keyboard listeners?

1 Like

@jrf.att
We’ve envaluated it. We will improve it.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSGRIDJS-805

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Thanks @peter.zhou! As a side note, a lot of the keyboard events still mutate the spreadsheet, even when in read mode (similar issue to what we found in Prevent move/resize of objects in 'read' mode in GridJS). For example, backspace will delete the cell contents, and Cmd+U / Cmd+B update cell formatting to underline/bold respective.

Thanks . We’ll improve it

@jrf.att
It is improved now . in ‘read’ mode ,key board event are no longer binded.
however resize event may still needed.when window size is change,the UI shall be resized.
we also add new method : xs.enableKeyEvent(isenable)
when isenable is true,the key event is enable. when false,the key event is ignored.
Please update to v23.5 ;
you need to update for both server side GridJs dll through nuget package and client side js through npmjs.