silexlabs / Silex

Silex is an online tool for visually creating static sites with dynamic data. With the free/libre spirit of internet, together.
https://www.silex.me
GNU Affero General Public License v3.0
2.34k stars 586 forks source link

Keymaps feature #1594

Closed SuperDelphi closed 6 months ago

SuperDelphi commented 6 months ago

Description

This pull request brings several pre-defined, ready-to-use shortcuts.

Shortcuts list

Full panels

Left panels

Workflow-specific

SuperDelphi commented 6 months ago

The branch has been updated!

SuperDelphi commented 6 months ago

@lexoyo I added some functionality to my PR!

✅ There are shortcuts hints in the project bar buttons (including the Publish button). ✅ The Shift+Alt+... have been replaced with Alt+.... ✅ Publish/Apply buttons are now automatically focused when the modal or the Publish dialog are opened, which can be triggered with Enter. ✅ The editor's input fields can be exited with the Escape key, except for (Rich) Text components (this is a complex issue). ✅ The Escape button is "smart" now. It will only close the foremost context. However, when exiting a "full panel" (ex: the Settings panel), even if you opened a "left panel" beforehand, the latter will be closed. It's an already existing issue due to the fact "left panels" close when a "full panel" opens. It is its own issue (that we can solve in another PR).