You are not logged in.

#1 2012-02-08 15:21:42

rhadesan
Member
Registered: 2011-05-03
Posts: 11

LXDE - disable keyboard shortcut F10 (menu)

Hello,
I am using LXDE at my station. I would like to disable this annoying shortcut - whenever I would like to hit F10 in mc, it shows menu of terminal.

How can I do it?

Thanks,
Radek

Offline

#2 2012-02-08 17:54:04

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: LXDE - disable keyboard shortcut F10 (menu)

Take a look in ~/.config/openbox/lxde-rc.xml. The keybinding is probably specified there.


Burninate!

Offline

#3 2012-02-08 18:31:31

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: LXDE - disable keyboard shortcut F10 (menu)

You could also probably change the keysym for the F10 keycode.  Use xev from terminal to find the existing keycode and keysym for F10.  You can use xmodmap to change the keycode to some other keysym or even to no keysym.

Offline

#4 2012-03-01 12:40:59

rhadesan
Member
Registered: 2011-05-03
Posts: 11

Re: LXDE - disable keyboard shortcut F10 (menu)

Gcool: No, it is not in this file. I am looked into this file before I asked.
David Batson: Xev gives me:

KeyPress event, serial 46, synthetic NO, window 0x1c00001,
    root 0xac, subw 0x0, time 1037118, (-249,487), root:(727,738),
    state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

and xmodmap -pke:

keycode  76 = F10 F10 F10 F10 F10 F10 XF86Switch_VT_10 F10 F10 XF86Switch_VT_10

Hovewer I am not sure how to modify this line to disable this behaviour. Can you help please? (I've read https://wiki.archlinux.org/index.php/Xmodmap and http://www.manpagez.com/man/1/xmodmap/ but it is still not clear for me sad

Offline

#5 2012-03-01 13:13:46

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: LXDE - disable keyboard shortcut F10 (menu)

You can clear the assignment by simply running:

# xmodmap -e "keycode 76 = "

Burninate!

Offline

#6 2012-03-01 15:38:04

rhadesan
Member
Registered: 2011-05-03
Posts: 11

Re: LXDE - disable keyboard shortcut F10 (menu)

Gcool: Thank you for this command; however this procedure also disables F10 functionality in Midight Commander.

Offline

#7 2012-03-01 16:23:31

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: LXDE - disable keyboard shortcut F10 (menu)

Ah right, of course. I think I slightly misunderstood the issue earlier. I just installed lxterminal and mc myself and was able to reproduce the exact same issue you have.

I was able to solve it by doing:

# xmodmap -e "keycode 76 = F10"

After you've done that; edit the file .config/lxterminal/lxterminal.conf (in your home directory) and set the option "disablef10" to "true".


Burninate!

Offline

#8 2012-03-02 09:00:47

rhadesan
Member
Registered: 2011-05-03
Posts: 11

Re: LXDE - disable keyboard shortcut F10 (menu)

Thank you, this works perfectly for lxterminal! Have you an idea how to achieve the same in terminator? (it is terminal emulator which I am using the most)

Offline

#9 2012-03-02 09:20:55

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: LXDE - disable keyboard shortcut F10 (menu)

For terminator, try the solution/workaround listed here.


Burninate!

Offline

Board footer

Powered by FluxBB