Steps to reproduce
Multiple issues with context menu (aka right click menu)
1. Keyboards controls are not working
Usually with context menus you can do next thing with a keyboard:
- Press
Esc
to close it - Press
Up
/Down
to navigate menu items- If press
Up
key on first item - it goin to back to last on - If press
Down
key on last item - it goin to back to first on
- If press
- Press
Space
orEnter
engage choose action
2. Keyboard is not get trapped on context menu.
In menus like this usually keyboard get’s “trapped” in a menu.
That mean that when Context Menu is opened so keyboard can manipulate Only in menu, but Not a cursor in editor.
Currently you can open Context menu and freely move cursor around in the document
Nice article here about how it should work here: What are keyboard traps? | Nomensa
3. There is few different Context Menus:
- Right Mouse Click on Any word (that is pass spellcheck)
- Right Mouse Click on Any word that misspelled
- Right Mouse Click on selected part of the word
- Click Button
Menu
on the Keyboard on word (that is pass spellcheck)
- Click Button
Menu
on the Keyboard on word that misspelled
- Click Button
Menu
on the Keyboard on selected part of the word
Bugs here:
- All menus open by keyboard have only basic actions like Copy/cut/paste
- missing any additional actions like:
Collaborations
,Extract current selection
- Clicking on Not misspell word missing action
Collaborations
Environment
- Operating system: Windows 10
- Obsidian version: v0.12.10
Additional information
There is may be more thing to it. I don’t know all states/actions that should be in Context menu.
Also It may need additional key binding for Vim mode (like j/k
for Up/Down