alt-key hijacked

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mint-o-licious

alt-key hijacked

Post by mint-o-licious »

I use the alt-key in several apps. Now with gnome3 that key is mapped to drag window. Completely breaks functionality of many softwares.
How can I have it not do that and let me use the alt key as an alt-key?

I have tried System Tools>System Settings>Keyboard Layout>Layouts Tab>Options but haven't found any option there that let's me use alt-key normally.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: alt-key hijacked

Post by xenopeek »

Open a terminal, and run:

Code: Select all

gconftool-2 -t str --set /apps/metacity/general/mouse_button_modifier ""
This disables the right alt key as modifier to drag windows around.
Image
mint-o-licious

Re: alt-key hijacked

Post by mint-o-licious »

I had no Metacity entries in gconfeditor.
I had /apps/marco/general/mouse_button_modifier which was set to <alt>. I removed that value but it did not help, alt is still dragging windows around.
viking777

Re: alt-key hijacked

Post by viking777 »

Try looking at it another way. The behaviour you describe is what most people want, and it can be very useful at times, so instead of trying to change that, why don't you try and change shortcuts you have that make use of it? For example make the shortcut Ctl/Alt instead of just Alt? I am sure that is going to be a whole lot easier and I have had to do it myself in one case.

Edit. Actually you might not even have to do that. If you go to System Settings>Keyboard>Shortcuts>Custom Shortcuts and create a new shortcut using the Alt key Gnome will show you a warning dialogue telling you that Alt is mapped to 'Resize Window' and ask you if you would like to reassign it.
mint-o-licious

Re: alt-key hijacked

Post by mint-o-licious »

viking777 wrote:..so instead of trying to change that, why don't you try and change shortcuts you have that make use of it?..
Because many of the softwares I'm using is heavily relying on the alt-key. some of them is proprietary where I cannot change it's alt-key behaviour.
So, thank you, but I do want to keep my alt-key used as an alt-key.
viking777 wrote:...The behaviour you describe is what most people want, and it can be very useful at times...
Yes, but I do want to choose myself what key-combo triggers moving windows. In compiz I had it set to ctrl+flag+alt-drag.
I feel gnome3 is very blunt and dumbed down compared to compiz where I can change pretty much what I want.
viking777 wrote:Edit. Actually you might not even have to do that. If you go to System Settings>Keyboard>Shortcuts>Custom Shortcuts and create a new shortcut using the Alt key Gnome will show you a warning dialogue telling you that Alt is mapped to 'Resize Window' and ask you if you would like to reassign it.
Can I map "alt" to "alt" that way?
Last edited by mint-o-licious on Mon Feb 06, 2012 6:04 am, edited 1 time in total.
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: alt-key hijacked

Post by xenopeek »

mint-o-licious wrote:I had no Metacity entries in gconfeditor.
I had /apps/marco/general/mouse_button_modifier which was set to <alt>. I removed that value but it did not help, alt is still dragging windows around.
Erm, I didn't suggest you go look for the setting. I gave you a command to run :wink: Run the command, it works.
Image
mint-o-licious

Re: alt-key hijacked

Post by mint-o-licious »

>Vincent. Sorry was to lazy to copy-paste as I read your post on another computer than the one having gnome3-problems...
Now I did it and it partially worked.
I now can use alt for keyboard-shortcuts but not for mouse-combinations. I can't alt-click on objects...
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: alt-key hijacked

Post by xenopeek »

Ah. That makes kinda sense. Perhaps it needs to be disabled at a different level for the right alt key still to be able to be bound to other mouse actions...

You should be able to bind the left alt to mouse actions though.
Image
mint-o-licious

Re: alt-key hijacked

Post by mint-o-licious »

I switched to mate with compiz which solved this issue and all others I had with gnome3. It just feels so dumbed down, an enviroment for preschool, not suited for workstations at all.
kjrunner

Re: alt-key hijacked

Post by kjrunner »

Has anyone found a solution to this? As above I am using mate on lmde and cannot get the windows manager from hijacking <Alt>Button1. Always tries to move the window. I have changed the setting in gconf-editor /apps/metacity/general/mouse_button_modifier; I have also disabled the setting in compiz manager. I also ran the command given earlier in this thread. After all this a <Alt> left mouse button still moves the window.

All help appreciated.
KJ
Kaetemi
Level 1
Level 1
Posts: 9
Joined: Fri Apr 27, 2012 6:23 am

Re: alt-key hijacked

Post by Kaetemi »

kjrunner wrote:Has anyone found a solution to this? As above I am using mate on lmde and cannot get the windows manager from hijacking <Alt>Button1. Always tries to move the window. I have changed the setting in gconf-editor /apps/metacity/general/mouse_button_modifier; I have also disabled the setting in compiz manager. I also ran the command given earlier in this thread. After all this a <Alt> left mouse button still moves the window.

All help appreciated.
KJ
Works when using mateconf-editor instead ;)
Locked

Return to “Software & Applications”