Keystrokes including ⌘ are not recognised if they don't originate in the KeyObserver #5001
Labels
package:utils
resolution:expired
This issue was closed due to lack of feedback.
status:stale
type:bug
This issue reports a buggy (incorrect) behavior.
The
KeyObserver
handles ⌘ as Ctrl correctly. It does not matter if one pressed Ctrl+B or ⌘+B, the right thing is executed e.g. by theKeystrokeHandler
. As long as the keystroke was pressed in the editing root (or descendant).But when it comes to the listeners attached to the UI elements (e.g. link form), there's no
KeyObserver
underneath. And there's no discovery of themetaKey
. So in the UI, Ctrl+B and ⌘+B are in fact different keystrokes.What we need is a simple fix corresponding to the mentioned code in the
KeyObserver
and a couple of tests.Discovered in ckeditor/ckeditor5-link#190 (comment).
The text was updated successfully, but these errors were encountered: