-
Notifications
You must be signed in to change notification settings - Fork 909
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
Double clicking extension icon to toggle the tab between suspended and not #179
Comments
@zwaa-vengeance which 'button' are you referring to? |
The upcoming release has a new keyboard shortcut to toggle the suspended state of the current tab. I may implement double click at some point in a future release. |
I wish to emphasize that keyboard shortcuts is never a replacement for
mouse controls. Providing efficient mouse controls should be a priority
because keyboard shortcuts has distinct disadvantages:
- The more apps, extensions and whatnot that you use keyboard shortcuts in,
the more shortcuts you will inevitably confuse and forget. Using the wrong
shortcut can lead to devastating results, and therefore the *only* safe way
to operate is to use the mouse over keyboard shortcuts.
- There is a finite number of keyboard shortcuts that the operating system
provides, and many extensions that provide shortcuts doesn't allow for
changing them or turn them off, setting the table for unpredictable
conflicts even with shortcuts outside of Chrome, ie system wide shortcuts
that may be blocked. I have encountered this more than once and in a couple
of instances even chose to refrain from keeping the extension because of it.
- Over time, the average user will install and uninstall countless apps,
extensions etc, and even more keyboard shortcuts will accompany them.
Keeping track of all shortcuts for even one single app can be too
exhausting, and in the end the keyboard shortcuts that you remember and use
are the ones that you save the most time using, and that saved time is a
combination of how often you use them and how much faster any given
shortcut is compared to the mouse operation equivalent.
- For any developer to expect the users to memorize and use the keyboard
shortcuts and therefore not provide mouse alternatives is to deprive the
users their free choice of which shortcuts that they're going to try and
remember, if any at all (yes, such users exist and in abundance).
…On Mon, Oct 23, 2017 at 10:58 PM, Dean Oemcke ***@***.***> wrote:
The upcoming release has a new keyboard shortcut to toggle the suspended
state of the current tab. I may implement double click at some point in a
future release.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALd1kUnyzD7H4M8iGu3Ruz0rZSh_O4e3ks5svP3fgaJpZM4ED4Jh>
.
|
I dont think that chrome gives me the ability to detect a double click on the extension icon (or any tab icons either). |
@deanoemcke it's possible for an extension to detect a double-click on the browser icon by checking the time between when the port between the popup and the background was opened vs. closed. My QuicKey extension uses a double-click to toggle between the two most recent tabs. (It's mostly triggered by double-pressing the alt-Q keyboard shortcut that opens the popup, but a double-click works the same.) In the background script, in Then the first thing it does in the popup is call It tracks the time between the port connect and disconnect, and if it's < 450ms, it toggles to the previous tab. In the TGS case, it would toggle the suspend state. It's not 100% reliable, especially on an old machine with Chrome running slowly, but it works well enough. Listening to the port close is the only way to detect the popup getting closed, since the |
Double clicking the button should toggle the tab between suspended and not.
The text was updated successfully, but these errors were encountered: