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
Shortcut for "Select the page's main/top frame"? #125
Comments
@alon91 nice requests, thanks!
Thanks again, and sorry about my confusion! |
@mikecrittenden I totally revamped my question to clarify the ask. The challenge is that the Maybe to really clarify I'd love to be able know that the following sequence will always work irrespective of the state of my browser:
|
Closing some old tasks, feel free to comment if this is still an issue. |
Hi Mike! I'm an absolutely avid Shortkeys user -- thank you so much for creating such an amazing extension! This may be a niche feature but I would so so so love to have it. Would regularly save me a bunch of keystrokes when I'm trying to figure out whether my browser's focus is in the URL bar, some text box, the page itself, or something else altogether. Happy to provide more supporting details, use cases, etc. if clarification would be helpful! |
Heya @alon91 - I spent some time digging into this request and researching and I'm not sure what you're asking for is possible. I found these links (which you may have already seen):
I also dug through the extension API. I just can't seem to find a reliable way to programmatically change focus to the web page itself, especially if the cursor is in the omnibar. Do you have any ideas about how this could be accomplished by any chance? |
I also dug through everything on https://developer.chrome.com/extensions/api_index as well as philc/vimium#226 to see if maybe there's a hidden API for changing the focus, but I don't see one. The "best" workaround that I've found is to hit ctrl+f (to focus the webpage and open the find dialog) and then immediately his esc to close it, but unfortunately that's not something that Shortkeys has the ability to do programmatically. :( |
Thanks so much for the reply and apologies for not responding here sooner! I really appreciate you digging in and providing all these great links. For the last several years I've been using the solution in this thread: I created a Chrome custom search engine that points to the Query URL If Shortkeys can run javascript via a shortcut while the cursor is in the URL bar then perhaps this is an answer? |
(I posted this feature request on January 1, and have meant to clarify the whole year -- finally doing it!)
I'd love to have a keyboard shortcut that mimics Vimium's
gF
binding for "focus the main/top frame". Unlike Vimium's solution, a ShortKeys shortcut would work in the URL bar and in input boxes.Personally my user journey would be to move through these steps in lightning speed:
Jumping out of the URL bar or input boxes can (usually) be accomplished by hitting
TAB
some number of times, with the exact number depending on both what's currently in focus and the page that is loaded. Some example of inconsistencies:TAB
: focus shifts to the page while scrolling to the top of page (undesirable). I believe it's possible that focus might actually move to an input box, which would require one or more additionalTAB
s.TAB
: Chrome scrolls through suggested queries in the URL barTAB
: focus shifts to the scroll bar. HittingTAB
a second time moves focus to a link inside the main frame.TAB
: focus shifts to the main frame.A keyboard shortcut that accomplishes step 1 in my user journey irrespective of the state of the browser would be divine, but the differences in behavior in the scenarios described mean that instead I first must identify which area of my browser is in focus, potentially hit
ESCAPE
to remove anything typed in the URL bar, and then hitTAB
until I recognize that focus is in the main frame.I tried to articulate all the details here but super happy to give more details!
(Absolutely love this extension -- many thanks in advance!)
The text was updated successfully, but these errors were encountered: