Closed lukashornych closed 2 months ago
There is one small caveat to using the keymaster library and it is the global all
scope. This scope is used in evitaLab for all of the global shortcuts that should be available anywhere. However, when dialog window is opened, these global shortcuts should be IMO disabled. The issue is that the keymaster library doesn't allow to disable the global context nor it allows to set up multiple active scopes at once (where I could have specific scope for global evitaLab shortcuts).
This issue than allows to e.g. switch tabs while have dialog specific to one tab opened, effectively losing bindings for the dialog window until the original tab is selected again.
The solution could be either extend the keymaster to support multiple action scopes (probably not good idea, lots of software may rely on the switching feature of setting new scopes, including evitaLab), or allowing to enable/disable the global scope.
Only thing missing is to fix some shortcuts in core CodeMirror editor on macOS.
Right now, there is no way to discover possible keyboard shortcuts that can be used. It would be helpful to list all available shortcuts, even for codemirror.