Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I observed that the shortcut for closing a tab in Firefox/Chrome/Chromium (Ctrl+F4) doesn't work on KDE. It seems it is being intercepted by KWin.

Is there any fix or workaround for this problem?

share|improve this question
Strange, I always used ctrl+W to close tabs. Both work perfectly for me though (although I'm using Gnome at the moment). – KIAaze Sep 2 '12 at 6:15
@KIAaze: Thanks for the comment. This solved my problem. Ctrl+W is a lot easier than pressing Ctrl+F4. I'm using Linux Mint 15. – Ufoguy Dec 11 '13 at 10:08
up vote 12 down vote accepted

The reason Ctrl-F4 doesn't work in KDE is because KWin uses the same keyboard shortcut for switching between workspaces. If you would really want to use Ctrl-F4, you might want to consider editing the KWin keyboard settings.

To do that, open System Settings and go to Shortcuts and Gestures.

System settings

Then navigate to Global Keyboard Shortcuts and choose Kwin from the KDE component dropdown.


Scroll down all the way until you see Switch to Desktop 4 option. Click on the shortcut and choose Custom and either select a different shortcut or leave it as empty.

Removing the shortcut

You should now be able to use Ctrl-F4 to close tabs in Firefox.


share|improve this answer
Thanks for the quick reply! – Anwar Shah Sep 2 '12 at 7:20
If you don't want to do all this then just use Ctrl+W instead. It works perfectly in Linux Mint 15. – Ufoguy Dec 11 '13 at 10:10

In Xubuntu, keyboard shortcut settings can be find in this path: Settings→Settings Manager→Window Manager→Keyboard

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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