Repository navigation
Activate shortcuts in task context menus - #2747
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2739. Thanks to @Oneiran for reporting it.
The shared task menu rendered key hints without binding them. Register the shortcuts on Obsidian’s menu scope and use the same activation path as a click. Apply the same fix to the batch menu. Remove the Enter hint from Open note because Obsidian uses Enter to activate the selected row.
Reproduced in Calendar, Task List, and Kanban on Obsidian 1.14.2. In each view, right-clicking a task showed the E, S, P, and D hints. Each key left the menu open without activating the action during the 1.5-second check. Clicking Edit task opened the editor.
The regression passed twice on Obsidian 1.15.1 and once on 1.14.2. It covers all displayed task shortcuts in the three views, the batch status shortcut, mouse activation, and native arrow-key and Enter navigation. The existing native task menu check also passed on 1.14.2. Jest reported 6,729 passing tests. Lint, typecheck, production build, and the bundle-size budget passed.