Shortcuts in GridPro (non-edit only)

Hi, i have a gridPro where i would like to add some shortcuts. Shortcuts.addShortcutListener(…).listenOn(myGrid) helps here. Unfortunately, these shortcuts are also triggered when being in edit mode in a cell.

Is there any way to turn this off, so that shortcuts are ignored when editing?

I currently have a hacky workaround using cellEditStartedListener and cellFocusListener adding/removing the shortcuts, but still hoping for a clean solution.

I don’t think there’s a really nice way to achieve that. You could use .custom editors and add shortcut listeners on the editor components and stop the propagation of the events there, but that’s not possible for the standard editors (which you should be using most of the time). And I can’t think of a simple way to do that with JavaScript either.