codu
codu copied to clipboard
Bug: On New post page, hotkeys register even when text input are not focused on
Context
On New post page (/create), try pressing ctrl/cmd + 1 (or 2, 3, 4, etc).
Expected Behavior
If Post body input (markdown-supported text area) is not in focus, browser should switch to the respective tab number 1, 2, 3, 4, etc. (default browser behavior).
If Post body input is in focus, then the respective hotkeys can register (e.g. ctrl/cmd + 1 creates a level 1 heading in markdown (#). For the full list, see /markdoc/editor/hotkeys/hotkeys.markdoc.ts.
Current Behavior
Hotkeys always register, regardless of the focus state of the Post body text input.
Screenshots
Steps to reproduce
See above.
Additional info
N/A
What a strange one. I really need to finish the new editor so we can kill this one anyway 😂