sobota, 23. marec 2013

Ubuntu: Make F10 work in Midnight Commander

If you are using Unity and Midnight Commander in gnome-terminal then F10 gets send to the terminal program not the Midnight Commander.
Here are the steps to correct this:

  1. install compizconfig-settings-manager
  2. run it
  3. go to "Ubuntu Unity plugin"
  4. disable "Key to open first panel menu"
  5. go to terminal menu Edit - keyboard shortcuts and disable "Enable the menu shortcut key (F10 by default)"
  6. paste this code into terminal (https://bugs.launchpad.net/ubuntu/+source/unity/+bug/726639/comments/18):

mkdir -p ~/.config/gtk-3.0
cat< ~/.config/gtk-3.0/gtk.css
@binding-set NoKeyboardNavigation {
     unbind "F10"
}
* {
     gtk-key-bindings: NoKeyboardNavigation
}
EOF

Ni komentarjev: