Disabling F10 key functionality for MC in Ubuntu.

If you use MC a lot, you probably know how annoying it is when you press F10 to quit and a menu pops up. To disable the F10 key functionality (right-click emulation) in Ubuntu 12.04, type the following commands in a terminal:
 

mkdir -p ~/.config/gtk-3.0
cat <<EOF > ~/.config/gtk-3.0/gtk.css

@binding-set NoKeyboardNavigation {
     unbind "<shift>F10"
}

* {
     gtk-key-bindings: NoKeyboardNavigation
}

EOF

To make sure it works, you have to exit (restart) all terminal sessions you have. I’m not sure if this fix applies to all versions of Ubuntu, but it definitely works for Ubuntu 12.04.

Andrei~

Leave a Reply

Your email address will not be published. Required fields are marked *

*

     

HTML tags are not allowed.