-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow global keyboard shortcuts to override all other shortcuts by providing a special field #6735
allow global keyboard shortcuts to override all other shortcuts by providing a special field #6735
Conversation
…oviding a special field
What about |
Here is a review of the changes I've pushed:
@pmario Thanks for the review so far! |
There is one thing left from my point of view. If we extend the function signature with additional options as you did with A bit of inline docs is added with the info about the new options element. The init in the function is done with: Creating the object makes sure that you can directly use like so: Lines 2151 to 2159 in 0391e18
|
@pmario Thanks, updated! Edit: The below section was moved to the body of the PR. Test Tiddlers:
The shortcut is Test cases:
|
I'll tackle updating the documentation for global shortcut later today. |
…ew priority setting
@EvidentlyCube we should also consider the need for consistency between the different editor engines provided by the core and core plugins, namely |
@saqimtiaz I was pretty sure it already worked with |
I'll check the test cases I've added to the PR description after putting the kid to sleep, and if everything works I'll move it from draft to real PR |
All test cases have passed, moving it to "Ready for review" |
Is there anything I could do to help getting this PR merged/reviewed/abandoned? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience @EvidentlyCube. Looks good to me but I would appreciate @saqimtiaz's feedback too.
@Jermolene this looks good to go now. |
Thanks you @EvidentlyCube @saqimtiaz |
Here is my proposed alternate solution to #6705.
In order to make a global shortcut override other shortcuts add a field
priority
and set it toyes
.Todo:
simple
editorcodemirror
editorTesting:
Below is info about what scenarios I checked and with what tiddlers
Test Tiddlers:
The shortcut is
Ctrl+L
. Clicking the checkbox in shortcut tiddler toggles priority betweenyes
and an empty value.Test cases:
priority = ""
pressingCtrl+L
:global
in the consoleglobal
in the consolewidget
in the consoleOpens Create wikitext link dialoglogsglobal
in the console (that's actually how it worked beforepriority
was introduced)priority = "yes"
pressingCtrl+L
:global
in the consoleglobal
in the consoleglobal
in the consoleglobal
in the consoleglobal
in the consoleglobal
in the console