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.

3
  • 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
    Commented Oct 12, 2017 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
    Commented Oct 12, 2017 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
    Commented Jun 29, 2018 at 16:18

1 Answer 1

3

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

3
  • I don't have enough reputation but echo and bind to Ctrl+w doesn't seem to work, since Ctrl+w will close the binding window.
    – Terry
    Commented Sep 26, 2021 at 0:36
  • @Terry You can ask a new question about it. Commented Sep 26, 2021 at 6:31
  • Seems to work for me too, in gnome. BTW, you can also use : as a command which does literally nothing (where echo still attempts to do something). Commented Mar 7 at 9:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .