9

By default F10 on Xfce activates the menu File menu and so cannot be used as a shortcut in any program.

I already looked in the Window Manager and Keyboard settings pages and no F10 key binding is listed.

How can I re-map/un-map this?

8

You can disable the key binding from the Settings Editor.

Go to Applications Menu > Settings > Settings Editor. Else if you are using Xfce 4.10, you can access from Settings Manager, listed under Other > Settings Editor.

In the Settings Editor window:

  • Under Channel at left column, look up for xsettings and select it
  • On right side area, there are columns of Property Type Locked Value
  • Under Property, look into Gtk > MenuBarAccel
  • Double-click on the row of MenuBarAccel to edit this property

In the "Edit Property" dialog, delete the value F10 (leave it blank) and click Save. This step will disable (or "unmap") the key binding for activating the menu bar.

For mapping to other key

You can change the key binding to something else. For example, I tried changing the value to <Control>F12 which will re-map to Ctrl+F12 key combination to activate the menu.

Similarly, you can try with other key bindings using <Alt> <Shift> and other keys. Look up for more clues in the Settings Editor under Channel, then select xfce4-keyboard-shortcuts and check the possible values under Property for the key bindings you want.

For restoring to default, with remarks after line

You can restore to default value by clicking on the Reset button that is located at right-most icon, on top of Property column (in Xfce 4.8) or Reset button at near-bottom of window (in Xfce 4.10).


In Xfce 4.8, clicking the Reset button will cause the MenuBarAccel to be removed at all. To avoid this, double-click on the row again and change the value to F10 to restore.

If you have accidentally deleted the property, you can create again the property by clicking on New button and re-register the property with the following settings in the "New Property" dialog:

Name: /Gtk/MenuBarAccel

Type: String

Value: F10

This remarks has been added in case of Xfce 4.8.

2

There is also a setting for disabling this shortcut on Terminal Preferences -> Advanced:

enter image description here

  • Should be accepted answer. – orschiro May 17 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.