You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find an easy way to prevent undo plugin keyboard shortcuts. As far as I know, there is no such option for this plugin.
I found that you can overwrite some hooks using updateSettings, however, undo plugin hooks are reattached every time when using hot.updateSettings function, so this method doesn't work for this special case.
I also tried to use afterDocumentKeyDown to customize beforeKeyDown hook as a workaround but seems that despite event.stopImmediatePropagation method, beforeKeyDown is still invoked by afterDocumentKeyDown. Stopped propagation is also not respected by undoRedo plugin.
Could you provide some API option to disable undo plugin keyboard shortcuts?
Your environment
Handsontable version: 7.0.0
Browser Name and version: Any
Operating System: Any
The text was updated successfully, but these errors were encountered:
* Changed: UndoRedo hotkeys could be blocked by stopImmidiatePropagation on beforeKeyDown. #6028
* Adjusted keydown helper for tests. #6028
* Revert checking if ctrl+y was used in chrome. This is a problem only in Chrome for MacOS. #6028
* Removed unnecessary helper from undoRedo plugin. #6028
Description
I couldn't find an easy way to prevent undo plugin keyboard shortcuts. As far as I know, there is no such option for this plugin.
I found that you can overwrite some hooks using
updateSettings
, however, undo plugin hooks are reattached every time when usinghot.updateSettings
function, so this method doesn't work for this special case.I also tried to use
afterDocumentKeyDown
to customizebeforeKeyDown
hook as a workaround but seems that despiteevent.stopImmediatePropagation
method,beforeKeyDown
is still invoked by afterDocumentKeyDown. Stopped propagation is also not respected by undoRedo plugin.Could you provide some API option to disable undo plugin keyboard shortcuts?
Your environment
The text was updated successfully, but these errors were encountered: