-
-
Notifications
You must be signed in to change notification settings - Fork 343
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 shortcut to be a mouse key #641
Comments
Hi @Adhyyan1252! I'm not sure I understand the flow you describe. On Windows, as soon as you release Also I'm not sure I understand what you would like to see in AltTab. You explained your previous workflow, but didn't formulate any enhancement that you would like to see in AltTab. This is why I added a template to the ticket by the way. You have emptied the template, but there is a reason I added it 😅 Can you please clarify what you would like to see improved? In any case, I can tell you that people have already asked to have a mouse-friendly UX, and I added that in AltTab. In the preferences, you can change the shortcuts to not hide the UI on release: This makes it easy to bind mouse buttons to You could also bind Basically you can be creative as there are many workflows possible with AltTab, with keyboard and mouse. If you're satisfied with the workflows I described, please feel free to close the ticket. Otherwise, please elaborate on what you think would be a way to improve on the mouse workflow. |
Sorry for not being completely clear before. I know of 2 applications which implemented specific functionality for alt-tab in their mouse. The first one is the logitech mouse and the logitech-options windows app which comes along with it. Then there's the XMouse control app for windows which has an option to make one of your mouse buttons a switcher. Essentially, I would like to see an enhancement in altTab which would allow me to do this. It's best to install xMouseControl and test it out yourself because only then will the convenience be really seen. Ill give my shot at explaining it here: Instead of having 2 buttons doing the switching (which is by default ALT and TAB) you only have one button doing the switching. Let the button be B. If B is pressed for the first time, the switcher opens and it stays open as long as B is being pressed. If B gets released and then within a set time period(say 100 ms) gets pressed again the switcher selection moves one ahead. Finally when B is released for a long time, the application is changed to the selected switcher and the switcher disappears. Even though I mainly use the keyboard for most of my activities, I still find using the mouse to switch using this technique more convenient and in some cases faster. This button B can either be a keyboard button or a mouse button. |
This could have several advantages. For eg. users can make their right-shift button (or any other free button) to an alt-tab button. Also people not might be creative enough to think about applying different configs for mouse up and down (i didn't think of that) so this could help them. An easy way to implement this: Would also have to give an additional option such that when you are holding the press key(tab), the switcher only moves forward once. So the selector should only move "on click" and not "while clicked" |
I understand now, thank you for the more detailed explanations. What I'm a bit puzzled by is: if your hand is already on the mouse, then why not use the mouse to select and click on the thumbnail? That seems more appropriate than hitting All those problems go away if you use the actual mouse by clicking the window you want, anywhere on the list, or clicking outside of the list to cancel. This UX you describe, with 300ms to press the button again to "hop" 1 by 1 seems limited and slow to me. Like if you want to go back to the previous window, without seeing the list even, because you just left it so you know what you want, then with this UX, you would wait 300ms to activate. You could directly bind To summarize, here are the weaknesses I perceive in this workflow:
What do you think about this? |
No. If the button is held down, the switcher remains static. The window only comes on focus when you leave the button for 300 ms.
For cancelling there can be workarounds i guess. Maybe if you click outside the switcher while holding the button, it would cancel it.
As I think more about this, I do see that it might not be the most practical/efficient. Although a good implementation would definitely be cool and have the potential to make it efficient and could have utility. |
To implement that workflow, it would require 2 new preferences as you described above. I don't think there is a need to combine the shortcuts into 1 as you mentioned. My philosophy for enhancements is that it's ok to add complexity (the 2 new preferences) as long as it delivers value to the users. So this enhancement needs to bring more value than the existing mouse workflow to outweight its UX complexity cost. I haven't heard such arguments from you so far. To me this flow has the mouse operate as a keyboard: instead of moving it and selecting visually, only the keys are pressed and the mouse is static. I'll keep this ticket open to see if other people show interest in such a workflow. For now i think we need a stronger case to justify added yet more preferences and complexity, as well as the pragmatic reality of my time being limited and there being 48 other issues to work on at the moment |
@Adhyyan1252 you can use Hammerspoon for such customizations. I've mine set so that doing mouse wheel while holding x2 mouse button, brings up alt-tab and when I release x2 it focuses the selected app. It works like a charm, but I tend to use the keyboard as much as I can lately. It's a lot faster... Maybe a bit steep learning curve, but it's definitely worth it! |
In Windows you can close windows in alt-tab by middle click. Only now I realized how much I miss that feature. It will be possible if I can assign middle-click instead of Q to the quit shortcut. |
@KurtGokhan The idea of implementing middle-click to close like on Windows (I had no idea, thanks for sharing that trick!) is interesting. We could actually let users bind any mouse button to these: We could have a second column of bindings. By default, the There are 2 issues with implementing this idea:
Regarding the last 2 points, a way to handle it could be to only support mouse left, middle, and right buttons. That way I hardcode a dropdown with 3 options and we are done. It would also be nice to implement #832 since the user could easily bind the same mouse button to multiple shortcuts by mistake. Something else to think about is that we could go deeper and support even more triggers. See for instance what BTT supports: |
@lwouis thanks for replying. Regardless of any missing features, this is a great app as is. I suggested something without realizing how complex it is. I just wanted to present an additional use case if this is ever implemented. So, no pressure. Also sometimes less is more. |
Another way we could do it is instead of:
We could do the other way around, and have another section after the actions, which reads:
I'm throwing this alternative out there because it may be nice to have a section dedicated to mouse and/or trackpad since we already cover:
And we may support in the future:
|
I think this is better handled with mapping some input to the keyboard shortcut, as I discussed above. Furthermore, I think this feature request is quite niche, so I'll close this ticket for now. Please upvote if you're interested in this feature. Enough upvotes and I'll reopen the ticket 👍 |
I am a user who just switched from windows and previously i had configured my mouse side buttons to be used for alt-tabbing. Clicking mouse-button-4 would open the switcher and proceed the selection by one. quickly releasing and pressing it again would proceed it one more. and if you leave it for long enough it would go to the selected window. worked like a charm on windows and saved me a ton of time.
The text was updated successfully, but these errors were encountered: