Ask after execution: Hotkeys for buttons (was: Tab key navigation between form elements) #139
Replies: 5 comments 14 replies
-
Let me share why/how I had this idea of using keyboard hotkeys to Modal. The RSS Reader plugin and From Template plugin uses a modal window as well. In their cases it was possible to define specific hotkeys to trigger the commands from buttons and text field. The links are from my FR from these plugins.
Another good example is the beta plugin Search Core Assistant
Another idea !!!!: how about we use CMD/CRTL+1 , CMD/CRTL+2 , CMD/CRTL+3 , CMD/CRTL+4 and CMD/CRTL+5 to trigger each one of the Redirect commands instead of TAB??????
Let'ssee what you think about what I wrote above :) But I agree with you, would be amazing if Obsidian implemented more native features for Modals Let keep talking :) |
Beta Was this translation helpful? Give feedback.
-
Will be released in
|
Beta Was this translation helpful? Give feedback.
-
Small problem with numpad@FelipeRearden We have two options: What would you think? I don't know how this works in macOS. |
Beta Was this translation helpful? Give feedback.
-
And just one more question that came to my mind now that I've spent some time implementing and testing this. Are number keys ok, or should letters be used instead?
Letters could be e.g.
This can also be decided/changed later. |
Beta Was this translation helpful? Give feedback.
-
Changed hotkeys to lettersWhen changing numbers to letters, I removed them from the button labels. I think letters would only make the buttons look messy. The letters can be seen from the tooltips anyway. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Edit 2022-03-05: This original post talks about tab key navigation. See this comment for the up-to-date idea: #139 (comment)
Original post
I opened this new discussion to continue talking about an idea by @FelipeRearden.
@FelipeRearden #138 (comment):
Being able to tab through buttons in the UI makes sense. The only thing I'm thinking is the scope of it: it's a larger thing related to more than just the output modal (#134). All other modals should also have the ability to switch focus between elements by using tab, and to trigger buttons by pressing Enter (maybe with a modififier key like you suggested). Well, now that I tested, I noticed that tab key works to switch between text fields and dropdown fields. On/off toggle fields, number range fields and buttons are not navigateable by pressing the tab key.
IMO the scope of this idea is Obsidian as a whole, so I'm thinking that we should make a feature request to them. If they implement it, I'd guess it would come to the output modal automatically, without any changes in this plugin. If they would not do it for some reason, then I could try to research it (with the goal to apply it for all modals in SC) sometime 🙂. It's a really good idea, and I definitely support it! 😎👍
Beta Was this translation helpful? Give feedback.
All reactions