-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
[Feature Request] Command to pass a single keystroke through to the page #964
Comments
Great feature request, although |
Also, I'd like to register my +1 vote for the alternate proposal, because without support for multi-key shortcuts, this feature would not be very useful on several sites, including many of Google's which tend to support multi-key shortcuts. To add a little bit of detail to this alternate proposal:
This would also allow pass-through of 3 or more keystrokes if typed quickly enough. |
This feature would be super helpful as a user of voice control software. As a keyboard user, modes are helpful in cramming a large number of actions onto a limited set of keys, but when controlling the computer by voice this constraint is no longer present and modeless operation is often preferred. This feature would make it easier to expose actions on the tab (to either the browser via surfingkeys or to the page via pass through) in a way which does not require the voice automation code to know the current state of the browser tab. |
A new flag -- The idea basically came from proposal of @aspiers, but I implemented it with a settings flag instead of a new mode. If
then press |
Thanks, this is great! Although I would have preferred a separate mode, because sometimes I want a semi-permanent passthrough, and other times just for one command. I tried this:
but it didn't work :-( |
I refined the implementation, Hope that helps. |
Works fantastically, thank you so much! :-) |
Prelude
Some web sites implement their own keyboard shortcuts. For example, on GitHub you can focus the search bar by typing 's' or '/'. Or while viewing a file (e.g. Surfingkeys/README.md), you can hit the 'b' key to jump into blame mode. (See GitHub's page Using keyboard shortcuts for a full list.)
Surfingkeys by its nature occupies a lot of keys on the keyboard, and most of the time it precludes using a web site's own keyboard shortcuts, if any.
Existing Workarounds
PassThrough Mode helps here:
So a user on GitHub can enter Alt-i s Alt-i to access the search bar.
But I think we can improve on this experience by implementing a single-keystroke passthrough mode.
Proposal
Add a command and to Surfingkeys which enables PassThrough mode, but only for a single keystroke, and bind it to the r key. That way a user on GitHub can access the search bar just by typing rs.
Alternate Proposal
Or, perhaps instead of passing a single keystroke, this new command should enable PassThrough mode, then wait for the next keystroke, and then an additional timeout—say, 300ms—before disabling PassThrough mode. That would allow easy access to web sites with multi-key shortcuts, like GitHub's gp for "Go to pull requests tab". Under this alternate proposal, a user could type rgp to access the pull requests tab.
This alternate proposal might be nice or it might be too complicated and thus finicky; I guess if someone implements it they will need to experiment a bit to see how well it works.
Prior Discussion
For reference: there was some discussion on Issue #656 about this idea, including a proposal for it in this comment, and then a request from @aspiers in this later comment for a ticket to track the idea. Hence this ticket.
The text was updated successfully, but these errors were encountered: