silexlabs / Silex

Silex live web creation, free/libre no-code website builder, next gen Webflow for the static web
http://www.silex.me
GNU Affero General Public License v3.0
2.15k stars 573 forks source link

Keymaps feature #1594

Closed SuperDelphi closed 1 month ago

SuperDelphi commented 2 months ago

Description

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

Shortcuts list

Full panels

Left panels

Workflow-specific

SuperDelphi commented 2 months ago

The branch has been updated!

SuperDelphi commented 2 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).