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

Must hit hotkey twice for launcher to show when using meta/windows key #297

Closed
imarkskinner opened this Issue Dec 5, 2016 · 15 comments

Comments

8 participants
@imarkskinner

imarkskinner commented Dec 5, 2016

I have to hit the hotkey combination twice for the launcher to show, but only if using the meta/windows key. This is on Linux Mint cinnamon so is possibly being affected by how cinnamon handles the meta key for desktop shortcuts.

Hold the meta key down and press your chosen hotkey, nothing happens, you have to keep the meta key down and press your hotkey twice, the first keystroke will send to whatever open window are using, the second keystroke will open the launcher.

Environent
Steps to reproduce

Set hotkey to anything involving the meta key, (my preference meta + tilde)

Expected behaviour

the launcher should open

Actual behaviour

nothing, you have to hit the tilde key twice in a row keeping the meta key down and the launcher will appear, it seems the first hit of the tilde key sends the tilde character straight to whatever open window you are using. Oddly enough the hotkey works as expected if you have the albert settings window open and as your active window.

@ManuelSchneid3r

This comment has been minimized.

Member

ManuelSchneid3r commented Dec 22, 2016

Is the tilde key registered for something. In the cinnamon keybard settings? I use it myself afaik I had to remove it since it was mapped to the menu. Try unregistering the Meta key

@tlegutko

This comment has been minimized.

tlegutko commented Dec 28, 2016

I'm having the same problem on Fedora 25, Gnome. Tilde key is irrelevant here, the bug happens with every key combination involving "Meta"

@imarkskinner

This comment has been minimized.

imarkskinner commented Jan 3, 2017

Yes it could be Meta + a it's the same effect, the first out of the keystrokes

(hold)META, a, a

the first 'a' will be sent to whatever window has focus as a normal 'a' character keypress would if you wern't holding meta, the second 'a' will open the albert menu as expected

I've no idea if this is Cinnamon specific but I can personally get around it by assigning the keyboard shortcut meta+tilde in the Cinnamon keyboard settings to the command 'albert toggle' to get the same effect.

@idkCpp

This comment has been minimized.

Member

idkCpp commented Jan 3, 2017

@tlegutko Do you experience the same thing with chars getting sent to the focused window? I have Gnome and I experience the double tap thing but not any chars being sent.

But these two things are sounding like a WM problem.
It it the same with Gnome.
When I setup a hotkey via the keyboard panel in gnome-control-center and set the hotkey to issue the albert toggle command, everything works just fine.
Maybe someone should ask some WM devs about this... I'm not the IRC-kinda guy...

@ManuelSchneid3r

This comment has been minimized.

Member

ManuelSchneid3r commented Jan 3, 2017

Seriously have you tried what I mentioned above? I am on cinnamon. Meta works fine.

@tlegutko

This comment has been minimized.

tlegutko commented Jan 4, 2017

@idkCpp, unfortunately I can't confirm with Gnome, as I've recently moved to Arch with i3wm, but I don't recall chars being sent to window.

On i3wm, by the way, shortcuts with meta work as expected, with single click.

And I can confirm @ManuelSchneid3r that your solution should work universally, I'm using it the same way for config convenience, and on Gnome that will probably work too, as regular shortcuts with Meta worked as expected.

@ManuelSchneid3r

This comment has been minimized.

Member

ManuelSchneid3r commented Jan 23, 2017

Closed since abandoned by OP. Reopen if you want.

@imarkskinner

This comment has been minimized.

imarkskinner commented Jan 24, 2017

Cinnamon intercepts the meta key combos before Albert gets it. I agree this is a Cinnamon issue but it is annoying. I'm not going to unassign the meta key, it's been the menu for years, I'll never get used to changing it.

@ManuelSchneid3r

This comment has been minimized.

Member

ManuelSchneid3r commented Jan 24, 2017

Well then use Alt+Space.This is more convenient for your thumb too 😄

@imarkskinner

This comment has been minimized.

imarkskinner commented Jan 24, 2017

I ended up setting a shortcut in cinnamon settings bound to 'albert toggle' works for me. If Cinnamon is being stubborn about intercepting my meta key combos it can do the leg work of opening albert.

@lozanro

This comment has been minimized.

lozanro commented Apr 14, 2017

I don't think it's a Cinnamon issue. And here are my arguments:

  • Meta + R mapping works perfectly fine for launching gmrun
    but
  • Meta + A won't work when Albert hasn't yet got focus (Meta + A + A works, or for any other keys, similarly)
  • Meta + A (single press) works when Albert's settings window is open, so imho it must be a focus issue

P.S.: Thanks for the albert toggle - I guess that should do it for now.

@oliveiraev

This comment has been minimized.

oliveiraev commented May 3, 2018

I don't think it's a Cinnamon issue. And here are my arguments:

Meta + R mapping works perfectly fine for launching gmrun
but
Meta + A won't work when Albert hasn't yet got focus (Meta + A + A works, or for any other keys, similarly)
Meta + A (single press) works when Albert's settings window is open, so imho it must be a focus issue
P.S.: Thanks for the albert toggle - I guess that should do it for now.

I've removed Menu applet and Meta + Space started working gracefully.

@saveman71

This comment has been minimized.

saveman71 commented May 17, 2018

@oliveiraev Thanks, that was it, for Super+Space at least! Good enough workaround since using Albert means I don't have to use the menu applet anyway.

Funnily enough, this is the first hit on Google when I looked for "cinnamon shortcut twice":

@pihentagy

This comment has been minimized.

pihentagy commented Oct 29, 2018

Thanks for the workaroud! Is there a way to have Menu applet with Win key AND have albert shortcut Win + A

Was the issue reported to the Cinnamon devs?

@oliveiraev

This comment has been minimized.

oliveiraev commented Oct 29, 2018

Thanks for the workaroud! Is there a way to have Menu applet with Win key AND have albert shortcut Win + A

You'll need a third app that listen for keys. Can you try setting albert toggle as a global hotkey cmd?

image

Was the issue reported to the Cinnamon devs?

Good question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment