lukashornych / evitalab

Official web-based GUI client for evitaDB e-commerce database. It is built to help developers who use evitaDB with exploring and debugging their domain structure and data. Besides standard query executing, it also supports multiple no-code tools to quickly navigate through domain structure, docs and data without needing to write any queries.
https://github.com/lukashornych/evitalab
Apache License 2.0
7 stars 1 forks source link

Create a screen to list all keyboard shortcuts #110

Closed lukashornych closed 2 months ago

lukashornych commented 5 months ago

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.

lukashornych commented 3 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.

lukashornych commented 3 months ago

Only thing missing is to fix some shortcuts in core CodeMirror editor on macOS.