-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Application shortcuts containing ⌘ and ⇧/fn continues action #8
Comments
I have experienced once where using an application shortcut containing ⌘ and fn was locked in the "moving window" action, requiring to restart MouseDef. However, I do not remember what I did to do this. Will post an update once I can reliably reproduce the problem. |
I cannot reproduce MouseDef getting stuck in a resize/reposition state and requiring shutting down the app. So far the example in the GIF is all I have as of now. |
One idea might be to not start moving/resizing the window until the cursor has been moved. For instance, when I take a screenshot with ⌘⇧4 I am holding ⌘⇧, but since I am not moving the cursor I would not know if the program is actively resizing it the window or not. By not moving/resizing until the cursor is moved, then this problem should go away. |
@vladdeSV Currently investigating the approach that you are suggesting. I'm wondering how we could monitor both, or rather we do that today but the trigger for the function to be invoked is that the flag modifiers change and then we wait for the mouse position to change in order to move or resize windows. I don't want to constantly monitor the mouse position based on movement but maybe it should monitor that way. It would mean that we would have to write some of the logic but it might just be what we want. I'll do some more digging to see what I can come up with, there might be an easier way to do this that I'm not seeing right now. |
I think I came up with a very minor but doable fix now. I've done some minor testing and it seems to be working, the nice thing about this change is also that it gets rid of the locked in effect where move or resize can get stuck. What do you think @vladdeSV ? |
I made a PR for this here #10 |
Here is a version that you can test with: |
Awesome, I'll try it out next week when I'm back at my mac! |
When issuing a shortcut command (either system wide or application specific) MouseDef gets locked in the action.
For instance, the system wide shortcut to take a screenshot ⌘⇧4 causes MouseDef to snap into resizing mode when the keys are not being pressed. Pressing and releasing the ⌘⇧ again stops the resizing action.
The text was updated successfully, but these errors were encountered: