rxhanson / Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas
https://rectangleapp.com
Other
25.1k stars 741 forks source link

Continuation of the bug #856 #1367

Closed chl00b4 closed 2 months ago

chl00b4 commented 2 months ago

This is a continuation of this bug: https://github.com/rxhanson/Rectangle/issues/856

macOS version: 14.4.1 (23E224) Rectangle version: 0.76 (82) Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

2024-04-20T12:25:57+02:00: AXEnhancedUserInterface was enabled, will disable before resizing 2024-04-20T12:25:57+02:00: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1415.0) 2024-04-20T12:25:57+02:00: AX position proposed: (-2000.0, -1415.0), result: (-2000.0, -1415.0) 2024-04-20T12:25:57+02:00: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1415.0) 2024-04-20T12:25:57+02:00: leftHalf | display: (-2000.0, 900.0, 3440.0, 1415.0), calculatedRect: (-2000.0, -1415.0, 1720.0, 1415.0), resultRect: (-2000.0, -1415.0, 1720.0, 1415.0), srcScreen: PL3466WQ, destScreen: PL3466WQ, resultScreen: PL3466WQ 2024-04-20T12:25:58+02:00: AXEnhancedUserInterface was enabled, will disable before resizing 2024-04-20T12:25:58+02:00: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1415.0) 2024-04-20T12:25:58+02:00: AX position proposed: (-280.0, -1415.0), result: (-280.0, -1415.0) 2024-04-20T12:25:58+02:00: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1415.0) 2024-04-20T12:25:58+02:00: rightHalf | display: (-2000.0, 900.0, 3440.0, 1415.0), calculatedRect: (-280.0, -1415.0, 1720.0, 1415.0), resultRect: (-280.0, -1415.0, 1720.0, 1415.0), srcScreen: PL3466WQ, destScreen: PL3466WQ, resultScreen: PL3466WQ 2024-04-20T12:26:00+02:00: AXEnhancedUserInterface was enabled, will disable before resizing 2024-04-20T12:26:00+02:00: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1415.0) 2024-04-20T12:26:00+02:00: AX position proposed: (-2000.0, -1415.0), result: (-2000.0, -1415.0) 2024-04-20T12:26:00+02:00: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1415.0) 2024-04-20T12:26:00+02:00: leftHalf | display: (-2000.0, 900.0, 3440.0, 1415.0), calculatedRect: (-2000.0, -1415.0, 1720.0, 1415.0), resultRect: (-2000.0, -1415.0, 1720.0, 1415.0), srcScreen: PL3466WQ, destScreen: PL3466WQ, resultScreen: PL3466WQ 2024-04-20T12:26:01+02:00: AXEnhancedUserInterface was enabled, will disable before resizing 2024-04-20T12:26:01+02:00: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1415.0) 2024-04-20T12:26:01+02:00: AX position proposed: (-280.0, -1415.0), result: (-280.0, -1415.0) 2024-04-20T12:26:01+02:00: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1415.0) 2024-04-20T12:26:01+02:00: rightHalf | display: (-2000.0, 900.0, 3440.0, 1415.0), calculatedRect: (-280.0, -1415.0, 1720.0, 1415.0), resultRect: (-280.0, -1415.0, 1720.0, 1415.0), srcScreen: PL3466WQ, destScreen: PL3466WQ, resultScreen: PL3466WQ

btw: THANK YOU FOR THE BRILLIANT APP!

chl00b4 commented 2 months ago

And one comment to that: when I fully close rectangle app, problem disappears.

rxhanson commented 2 months ago

The resolution of https://github.com/rxhanson/Rectangle/issues/856 was that it was likely that home and end were remapped to be like shortcuts recorded in Rectangle, of which a solution would be to adjust keyboard shortcuts or remapping.

Are you having a different issue?

chl00b4 commented 2 months ago

When I click "home" and "end" button, wherever I am (i.e. in Word) it moves my Word window like the key was mapped. It's in any type of applicaion the same. It just starts to have a special function to move windows, like command+left arrow and command + right arrow. When I close the Rectangle those buttons start to work "normally" so i.e. in Word "home" -> you go to the beginning of line, "end" -> end of line.

But don't think it's only in Word. It's in any app. So default behaviour of "home" and "end" button is replaced by moving the window to the left and to the right.

I hope you understand my explanation. I can try to record the screen somehow if needed.

chl00b4 commented 2 months ago

Just a simple update. "Home" and "End" buttons just run in a sequence (2/3 of screen, half, 1/3 of screen) and the difference is that home is doing it to the left, and end to the right. and these options are not set up (mapped) by me. It stays as "not assigned" by default.

rectangle-home,end

rxhanson commented 2 months ago

Something you have running is remapping home and end to cmd+left arrow and cmd+right arrow (the macOS way to move cursor to beginning/end of line).

There's another setting in the gear tab, where you could turn off the repeated actions that cycle through 2/3 and 1/3 sizes as well.

You'll likely want to pick a different mapping for left/right half, or if you're set on that then you'll want to undo that remapping of home/end.

chl00b4 commented 2 months ago

Okay, I removed repeated commands: repeated commands

But still you fixed home/end button somehow for left/right half. And I (people) need to have home/end button free (or possible to edit). It's used in mac os system as a home/end button for many, many applications. Can you do it? Otherwise at least I need to move myself to different app, and I wouldn't really like to do this, because the rest is perfect! Thanks for considering.

rxhanson commented 2 months ago

Seems like I wasn't clear. The issue is not with Rectangle, it is that you have conflicting mappings configured on your Mac.

You need to pick a different keyboard shortcut for left/right half. Command+arrow left/right is the macOS keyboard shortcut for moving the cursor to the beginning or end of a line.

Alternatively, you can remove a key remapping you have for making home/end execute command+arrow left/right. This is probably the less desirable solution for you, but perhaps you configured this using something else and forgot that this was done.

chl00b4 commented 2 months ago

But how you assume this if I'm saying that when Rectangle is off, home/end buttons work correctly?

rxhanson commented 2 months ago

Your home/end keys are executing cmd+left arrow or cmd+right arrow.

When Rectangle is running, it is intercepting cmd+left arrow or cmd+right arrow and executing left/right half window actions.

You need to pick a different keyboard shortcut for left/right half in Rectangle.

image

chl00b4 commented 2 months ago

I changed combination and it works (means home/end keys are free again)! I don't know why home is at the same time command + left arrow, but it works now.

rxhanson commented 2 months ago

In order to make home and end execute command+left arrow or command + right arrow, you would have done something to remap it. I provide this capability in one of my apps, https://superkey.app.