6

Alt+F4 works for all windows as usual, but I find Ctrl+W only works for some programs, for example, the file manager, any xfce settings program, mousepad, and the screenshot tools, however it doesn't work for any other programs e.g. calculator, terminal, everything else.

This is an inconsistent behavior, and I'd like to disable this as I'd want Ctrl+W only function as shortcut to close my browser tab.

I have take a look on the Window Manager, but sure enough there is no Ctrl+W mentioned, anywhere.

Nur
  • 4,081
  • I think you will be able to disable it individually. To change gedit Ctrl+W shortcut, we need to do this, but as it envolves gtk, it may reflect to other programs. But, it's on gnome. I don't know about XFCE. – Redbob Oct 12 '17 at 12:57
  • 3
    It's not in the window manager because this shortcut is used by applications themselves. I usually find ctrl+w anoying because it's the save shortcut in nano. – pim Oct 12 '17 at 13:36
  • jesus, it took me months to figure out why my code editor closes on ctrl+W although the shortcuts are adjusted... – Ufos Jun 29 '18 at 16:18

1 Answers1

3

Go to Keyboard shortcuts add custom shortcut "Do nothing" write echo as command. And bind it to Ctrl+w. It worked for me.