Sometimes shortcuts are also triggered when focusing an inline editable field.
No shortcut triggering
All toggle shortcuts could be triggered
Neos: 3.3.12
UI: 1.1.2
This shouldn't happen ofc, but there may be are some timing issues - we are thinking about introducing a modifier key or something but aren't sure at this point
This issue is really annoying, just got some bug reports from our customers. Will deactivate the shortcuts for now.
Does it still happen with the latest release?
Nope, but you can disable them since some time
@mstruebing so this issue is no longer relevant and can be closed?
The issue is still there - if you have them activated(currently default) you will get this buggy behaviour.
But if this issue annoys you you have the possibility to deactivate them.
To do that set Neos.Neos.Ui.frontendConfiguration.hotkeys to empty (~) or empty array ([])
Ah, I see, then we should find a reliable way to reproduce it and fix it
Yep, no one came up with a good solution by now, except modifier keys but someone said we should first check how other web apps are doing it and that was it until now
Can confirm, have this issue as well.
I can confirm too. Did we have a place in the state where we can store "currentlyEditing" when focusing on input and inline. And then the shortcut module can take decision based on this value ?
@dfeyer Yes, we do.
@dfeyer Yes, we do.
But it doesn't work in this case ?
No idea, I never looked into how the feature is currently implemented (@mstruebing might know more), nor was I able to reproduce the bug on my machine.
This is the current implementation: https://github.com/neos/neos-ui/blob/9fa571adba1fb5631e5398886932634a1d043bc1/packages/neos-ui/src/Sagas/UI/Hotkeys/index.js#L39
I might have some time soonish to try another approach
Most helpful comment
Yep, no one came up with a good solution by now, except modifier keys but someone said we should first check how other web apps are doing it and that was it until now