Sebobo / Shel.Neos.CommandBar

A commandbar (CMK+K) for Neos CMS
MIT License
15 stars 2 forks source link

BUGFIX: directly register event-listener for ctrl-k #40

Closed PRGfx closed 1 year ago

PRGfx commented 1 year ago

I removed the registration of the ctrl+k hotkey for Neos completely and added the event-handler directly analogous to the module-ui.

Sadly it doesn't seem possible to prevent the default-behavior with the neos-ui hotkey-handling, as neither the event is passed to the handler nor a return value could be set from the handler: https://github.com/neos/neos-ui/blob/a0683ed157699042aa269ea0819977efafb5be46/packages/neos-ui-sagas/src/UI/Hotkeys/index.js#L14-L16

This PR does not contain a build to avoid conflicts, but I can add it, if preferred.