applications-menu icon indicating copy to clipboard operation
applications-menu copied to clipboard

Close when focus is lost

Open spotlesscoder opened this issue 6 years ago • 3 comments
trafficstars

I'd like to have my elementaryOS installation behave very similar to Windows as I (and I think many others) are used to it.

For example, I added a custom key shortcut "Super + i" to open switchboard, as in Windows 10, the same shortcut also opens the settings window". A also set the applications menu to single "Super" key rather than "Space + Super"

Now, when I press the Super + i, then move the Window all to the left (Super + Leftarrow on my system), close it, then after some time open the applications menu (single Super key press) but then decide to open the settings window again (Super + i), the settings window opens behind the still open applications menu and I can' ready what I'm typing in the settings window in the background.

I'd like the applications menu to close when another application opens so that I can immediately start working with the application I just opened.

With one exception:

I added another custom key command (Super + Shift + S) which runs the command shutter --select to create a screenshot from a rectangle selection which I can specify using the mouse. In case this shutter application opens, I want the applications menu to stay where it was if it was open before so that I can make it part of the screenshot if I want.

spotlesscoder avatar Sep 11 '19 16:09 spotlesscoder

I think I'm going to simplify this to: the Applications Menu should close when it loses focus. For screenshots specifically, you can always use a delay and/or a keyboard shortcut to trigger a screenshot; I don't think it's worth special casing the focus behavior around that one use case.

cassidyjames avatar Oct 10 '19 23:10 cassidyjames

A simple reproducible test case using elementary OS defaults: open Applications Menu, then tap Super to open the Shortcut Overlay. I would expect Applications Menu to close since the Shortcut Overlay stole focus, but instead it stays open but unfocused.

cassidyjames avatar Oct 10 '19 23:10 cassidyjames

Related to https://github.com/elementary/applications-menu/issues/140 and https://github.com/elementary/applications-menu/issues/143

arshubham avatar Oct 11 '19 04:10 arshubham