Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

At work I got a new laptop with a full keyboard(it has numpad), but the laptop is not that big, and because of that the keys are relatively small, which means I am constantly finding myself pressing keys accidentally on the numpad part, is there a way to simply disable specific keys that I simply don't want?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

I have the Menu key very close to the control and left-arrow keys.

xmodmap -e 'keycode 135 = 0x0000'

Some references to get around with things.

  1. xev will let you identify the keycode for your key of interest.
    Look at its man page, This is a good quick reference too,
    Mediakeys with .Xmodmap HOWTO
  2. ArchWiki has a good description for xmodmap
share|improve this answer
what can I do to disable '/' key? – shravan Jul 19 at 7:06

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.