Disable F1 on xfce terminal
I'm not using XFCE as a desktop environment, but I am using XFCE's terminal. Currently, when I press F1, I get the help. I really don't need this, and it's really annoying when I accidentally press it when in VIM when trying to press escape.
I didn't see anywhere in Preferences to change/disable keyboard shortcuts. Is there some hidden way to disable these shortcuts?
If it matters, I'm running xmonad on Arch Linux.
This page recommends adding blank accellator shortcuts to ~/.config/Terminal/terminalrc'. I run XFCE 4.8 and could not find this file myself. However, in my terminal preferences (under Edit), there is a shortcut tab. Help = F1 is the last shortcut in the list. My terminal emulator version is 0.4.8. Hopefully one of these will be applicable to you.
Copied from Function Key Binding in XFCE and the FAQ:
- Run
xfce4-appearance-settings
. - Click Settings tab.
- Check Enable editable accelerators.
- Click Close.
- Open an xfce terminal.
- Click the Help menu.
- Hover over Contents (do not click).
- Press the Del key to delete the accelerator.
F1 disappears from the menu item.
The fullscreen accelerator, F11, can be removed similarly:
- Click View
- Hover over Fullscreen.
- Press Del.
Pressing any other key than Del reassigns the accelerator key to the key that was pressed.
At least for xfce-terminal of version 0.8.6
or higher there is an option within preferences, where this can be easily set.
Yeah, this may seem obvious. I posted this in order for people landing here from their favourite search engine to know there is much easier way to solve the problem now.
on xubuntu 12.04 with xfce4-terminal 0.6.1 (Xfce 4.10) I've resolved adding:
in ~/.config/xfce4/terminal/accels.scm
(gtk_accel_path "<Actions>/terminal-window/fullscreen" "")
(gtk_accel_path "<Actions>/terminal-window/contents" "")
and in ~/.config/xfce4/terminal/terminalrc
AccelFullscreen=
AccelContents=
so both F1 help/contens and F11 fullscreen are disabled