How to disable some hotkeys in Ubuntu

(2 comments)

I mostly don't use mouse, and doing everything from keyboard while working. But the most annoying thing is that while making something awesome in code editor or reading something good in firefox you can suddenly press Ctrl+Q (which exits from browser immidiatly without warnings) or Alt+F4 when you want to press Alt+F3. Everytime I loose time because of that hotkeys.

So, today finally I changed my keyboard layout after closing code editor with unsaved code and important sorted data.

In Ubuntu just open System Settings and then Keyboard:

Ubuntu System Settings

Then edit current key combination to make it hard and unique (click once on it to change):

Ubuntu Close Window Hotkey

Now go to Custom Shortcuts and add new keys with /bin/false command which will do nothing:

After adding combinations here these keys will do nothing and you will never have such problem again. Just remember changed hotkey to not search later why they are not working :D

Happy coding...

Current rating: 3

Comments

Jules 4 years, 5 months ago

How does one disable a shortcut ?

I have Ubuntu 19.
In Settings> Keyboard > Keyboard Shortcuts, I see a long list of Shortcuts (incl. some Disabled)

But selecting one only seems to invite a change of key - not the ability to Disable.

I want to Disable ALL Keyboard Shortcuts.
(Unexpected, unwanted screen changes during work has been one of the most annoying features of 2 decades of computing !)

Thanks very much

Link | Reply
Current rating: 5

Emin Mastizada 4 years, 5 months ago

There is no an option to disable all shortcuts at once, but you can go to Keyboard shortcuts, select each shortcut and in setting a new shortcut for it, click on Backspace, that will delete/disable the shortcut.
You can do it for things like workspace switch and other thigns that bother you.

Link | Reply
Current rating: 5

New Comment

required

required (not published)

optional

required