How to disable all "keyboard shortcuts"

Chris Green cl at isbd.net
Sat Aug 13 08:59:43 UTC 2022


On Sat, Aug 13, 2022 at 03:44:21PM +0800, Bret Busby wrote:
> Hello.
> 
> How can I disable all "keyboard shortcuts" - the key combinations, other
> than using the shift key with a key?
> 
> I have searched, but all that I can find, is how to do it for individual key
> combinations; one at a time.
> 
> It is infuriating, to suddenly lose work, or have things moved, because of
> inadvertently pressing some horrible key combination, that destroys or
> disrupts what I am trying to accomplish, at any given time.
> 
Can't help there I'm afraid.


> Also, how do I disable the <CAPS LOCK> key? I have seen this once before,
> but do not remember where, and, on all keyboards where I can, I remove the
> key cover, so that it cannot be used.
> 
This I can do! :-)

In your .Xmodmap file in your home directory add/put:-

    !
    !
    ! Stop CapsLock from doing CapsLock (xbindkeys makes it paste)
    !
    clear lock
    keycode 66 = NoSymbol NoSymbol NoSymbol NoSymbol

You do need xmodmap installed of course but I *think* that's in most
distributions by default.  If not then the package to install is
x11-xserver-utils.


-- 
Chris Green




More information about the ubuntu-users mailing list