Disable CTRL+ALT+F4 switching to virtual terminal

Is there a way that I can stop the Ctrl+Alt+F4 key combination from switching to a virtual terminal? I still want the other key combinations to switch to terminals - I just want to change the F4 one because I often use that keyboard shortcut in a Windows VM.


You can modify the keymap, with the following command:

xmodmap -pke | sed -n 's/ = .*VT_4.*/ = /p' | xmodmap -

Tested on 14.04, and 14.10, and it works. To have the command work even after restart, use upstart. For additional ways, and info see here