Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

Status menu not usable with keyboard

Open paulistoan opened this issue 5 years ago • 7 comments

In macOS, the shortcut for moving the focus to the status menus is ^F8. I am able to use this to select the rectangle status menu and can press the down arrow to open it, but after that I am not able to press down again to select an entry, or start typing an entry name to select it. This behavior seems to work for other applications (using down arrow or typing an entry name). Are you able to address please? I like the functionality offered by Rectangle but would like to use it without shortcuts, but rather in a menu fashion where I could open a menu and select the action I want myself. Separately, I could also work around this limitation if I could send Rectangle commands via the Terminal, because I could couple it with something like dmenu-mac. From what I was able to find out though, this is not possible, am I correct?

paulistoan avatar Oct 08 '21 12:10 paulistoan

I’ll take a look at getting keys in the menu working on the next release which should be out soon. I would love to add scripting but it’s a more serious endeavor than I expected and would take a chunk of time.

rxhanson avatar Oct 08 '21 21:10 rxhanson

Thank you!

paulistoan avatar Oct 08 '21 22:10 paulistoan

Getting keys working in the menu looks to be a bit more mysterious than I had expected. Are any of the other applications that this works in 3rd party applications, or are they all Apple ones? The reason I ask is this: https://stackoverflow.com/questions/29888032/nsstatusitem-not-keyboard-navigable. If it's just Apple ones, then we might be somewhat out of luck and solving your specific issue would then rely on scripting.

rxhanson avatar Oct 13 '21 02:10 rxhanson

Thank you for looking into this. Here is a 3rd party one that seems to work without issues: https://github.com/dmarcotte/easy-move-resize

paulistoan avatar Oct 14 '21 12:10 paulistoan

Thanks! Strangely enough, I did some testing and the arrow keys actually work unless the preferences window is opened. So, as a workaround until I figure it out, you could just restart Rectangle and not open the prefs window?

rxhanson avatar Oct 15 '21 02:10 rxhanson

Please try v0.49 and let me know how it goes.

rxhanson avatar Oct 20 '21 00:10 rxhanson

Works great, thank you for the fix!

paulistoan avatar Oct 20 '21 12:10 paulistoan