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

Hud shortcut messes with IntelliJ shortcuts #15

Open
carolosf opened this issue Nov 16, 2017 · 5 comments
Open

Hud shortcut messes with IntelliJ shortcuts #15

carolosf opened this issue Nov 16, 2017 · 5 comments

Comments

@carolosf
Copy link

Hi there,

The hud shortcut messes with IntelliJ shortcuts.

I have mitigated this by changing the shortcut to the right alt by running the following on the terminal:

~ gsettings get org.mate.hud shortcut 'Alt_L' ~ gsettings set org.mate.hud shortcut Alt_R ~ gsettings get org.mate.hud shortcut 'Alt_R'

Not sure why the hud on Ubuntu doesn't have this issue.

Thanks for working on ubuntu mate - my favourite distribution since Unity was removed from Ubuntu 17.10!
Keep up the good work.

@vkareh
Copy link
Member

vkareh commented Nov 27, 2017

@carolosf - I don't know/use IntelliJ, so I'm not sure which shortcuts it's messing with. However, I just installed it and noticed that the window itself doesn't respond to a few other commands that don't use the Alt key (like tiling, for example), and it doesn't seem related to the HUD.

Do you have more specific examples so that I can dig further?

@carolosf
Copy link
Author

ALT + 1 should show and hide the project tree
ALT + Insert in the project tree should add a new file

I was having trouble with ALT + Insert and ALT + Enter because they are very common IntelliJ shortcuts.

@vkareh
Copy link
Member

vkareh commented Nov 27, 2017

@carolosf - yeah, I see how Alt+Insert wouldn't really work. The way HUD determines which keys to forward where is based on a list generated by GTK that tells HUD if a keycode is valid for an existing window or for a global shortcut. The Insert key doesn't show up on my list (it's keyboard-mapping dependent), so it would be treated as though Alt+Insert was a global shortcut, rather than a window-specific key (for the IntelliJ window in this case).

You can probably try hitting Insert twice (Alt+Insert+Insert) and that should bypass the grab that HUD has on the Alt key combo. Let me know if that works.

As for Alt+1 and Alt+Enter, they are fixed by that auto-generated list of keycodes, but it's not part of 17.10 - it's currently tagged for 18.04.0 but I'm not sure if it will be backported (if you're up for it, you can try building from the tag in your own computer and get the Alt+1/2/3/Enter shortcuts fixed, otherwise you'd need to do the same as for Insert: Alt+1+1, etc.)

To answer your question about Unity: Ubuntu Unity didn't have this issue because the HUD was baked directly into the Unity, with support from Compiz, whereas mate-hud runs as a separate script, so it has a few more hurdles to jump, as Xorg doesn't really support using Alt as a shortcut (the HUD just tricks Xorg into accepting it as one)...

@cccplex
Copy link

cccplex commented Apr 4, 2018

Hi, I use 17.10 and I have the same problem with firefox. I can't use alt+d to enter the address bar.
I tried to change the shortcut with dconf to <Alt>space but then I got this error:

Cannot understand the key combination: <Alt>space
.Key <Alt> space is not understood
Failed to set binding for: kb-cancel

@vkareh
Copy link
Member

vkareh commented Apr 5, 2018

@cccplex - this doesn't seem to be an issue in 18.04. mate-hud has changed considerably since 17.10 and now plays nicer with other applications, including Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants