Skip to content
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

[Feature Request] superkey hit to hide the menu #70

Open
aldorgan opened this issue Aug 21, 2017 · 11 comments · Fixed by getsolus/brisk-menu#3
Open

[Feature Request] superkey hit to hide the menu #70

aldorgan opened this issue Aug 21, 2017 · 11 comments · Fixed by getsolus/brisk-menu#3

Comments

@aldorgan
Copy link

i'm wondering if it possible to add so when the menu is up and you press the superkey again the menu goes away? instead of pressing escape or a mouse click.

@flexiondotorg
Copy link
Contributor

I've only been able to reproduce this issue in a VM. Are you using a VM?

@aldorgan
Copy link
Author

No VM here, this is on real hardware a laptop with Debian 9 and Mate.

@flexiondotorg
Copy link
Contributor

Thanks for confirming. I've found one laptop in my collection where Super won't retract the menu.

@ikeydoherty
Copy link
Member

Is this a right super key or left? And is the same super key used for closing/opening?

@aldorgan
Copy link
Author

@ikeydoherty This is a left superkey and that is the only superkey my laptop has.

@flexiondotorg No problems :)

@Serloff
Copy link

Serloff commented Nov 22, 2017

Greetings!
I have the same problem here, an ubuntuMATE-forums member found out that it might be the Num Lock (at least in our cases) what is causing the problem.
https://ubuntu-mate.community/t/brisk-menu-does-not-save-config-and-does-not-close-with-super-key/15184
cheers.

@ikeydoherty
Copy link
Member

I don't like Ikey very much, so I'll leave that part to you :slight_smile:

Charming.

@Serloff
Copy link

Serloff commented Nov 22, 2017

@ikeydoherty hahaha sorry, didn't realize it was you he was talking about.

@pemartins1
Copy link

I'm using Ubuntu MATE 18.04 and I have the same Num Lock issue: if Num Lock is on, the Left Super key only shows (opens) the menu but does not close it; if Num Lock is off, Left Super key opens and closes Brisk Menu always fine without any issue at all.

@vkareh
Copy link
Contributor

vkareh commented Jun 7, 2018

@pemartins1 - huh, thanks for that bit of info. I was finally able to reproduce this.

@vkareh
Copy link
Contributor

vkareh commented Jun 7, 2018

Bingo! When the menu is open, instead of calling the standard key-binder, we use a simple key-press-event (since we're in a focused window, no need for a global listener) to detect Super_L being pressed and so close the menu.

However, when NumLock is enabled, the accelerator comes back as <Mod2>Super_L, even though the configured shortcut is just Super_L, which means that they are not the same, and so we ignore it. The global key-binder just blacklists the <Mod2> state (and others).

This is a simple fix. I'll work on it today and submit a pull request shortly.

vkareh added a commit to vkareh/brisk-menu that referenced this issue Jun 7, 2018
This addresses an issue that occurs when trying to close the menu using the configured shortcut without modifiers, but Lock keys (NumLock, etc) are enabled.

Fixes solus-project#70
vkareh added a commit to vkareh/brisk-menu that referenced this issue Jun 7, 2018
This addresses an issue that occurs when trying to close the menu using the configured shortcut without modifiers, but Lock keys (NumLock, etc) are enabled.

Fixes solus-project#70
vkareh added a commit to vkareh/brisk-menu that referenced this issue Mar 8, 2019
This addresses an issue that occurs when trying to close the menu using the configured shortcut without modifiers, but Lock keys (NumLock, etc) are enabled.

Fixes solus-project#70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants