How to disable keys from the keyboard?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
11
down vote
favorite
I have a 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 disable specific keys that I simply don't want?
keyboard
add a comment |Â
up vote
11
down vote
favorite
I have a 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 disable specific keys that I simply don't want?
keyboard
add a comment |Â
up vote
11
down vote
favorite
up vote
11
down vote
favorite
I have a 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 disable specific keys that I simply don't want?
keyboard
I have a 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 disable specific keys that I simply don't want?
keyboard
keyboard
edited Mar 8 '17 at 8:48
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
Zanna
48k13119228
48k13119228
asked Jul 25 '11 at 6:48
Void
2522310
2522310
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
10
down vote
accepted
I have the Menu
key very close to the Ctrl and left-arrow keys.
xmodmap -e 'keycode 135 = 0x0000'
To get a first impression what keycodes are mapped to which keys, just type:
xmodmap -pke
which gives you a list of all mappings. For example, the line
keycode 57 = n N
means that the keycode 57 is mapped to a lowercase "n" if no extra key is pressed, and an uppercase "N" if Shift is held.
Some references to get around with things.
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- ArchWiki has a good description for xmodmap
what can I do to disable '/' key?
â shravan
Jul 19 '15 at 7:06
add a comment |Â
up vote
9
down vote
Example to disable/enable backspace:
# Disable
$ xmodmap -e 'keycode 22 = '
# Enable
$ xmodmap -e 'keycode 22 = BackSpace'
where 22 needs to be replaced by the output of xev
while pressing backspace.
1
Great, thanks. I'm always hitting "Insert" by mistake when I hit the End key, and I just remapped Insert to the End function :)
â Max Williams
Apr 17 at 14:25
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
10
down vote
accepted
I have the Menu
key very close to the Ctrl and left-arrow keys.
xmodmap -e 'keycode 135 = 0x0000'
To get a first impression what keycodes are mapped to which keys, just type:
xmodmap -pke
which gives you a list of all mappings. For example, the line
keycode 57 = n N
means that the keycode 57 is mapped to a lowercase "n" if no extra key is pressed, and an uppercase "N" if Shift is held.
Some references to get around with things.
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- ArchWiki has a good description for xmodmap
what can I do to disable '/' key?
â shravan
Jul 19 '15 at 7:06
add a comment |Â
up vote
10
down vote
accepted
I have the Menu
key very close to the Ctrl and left-arrow keys.
xmodmap -e 'keycode 135 = 0x0000'
To get a first impression what keycodes are mapped to which keys, just type:
xmodmap -pke
which gives you a list of all mappings. For example, the line
keycode 57 = n N
means that the keycode 57 is mapped to a lowercase "n" if no extra key is pressed, and an uppercase "N" if Shift is held.
Some references to get around with things.
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- ArchWiki has a good description for xmodmap
what can I do to disable '/' key?
â shravan
Jul 19 '15 at 7:06
add a comment |Â
up vote
10
down vote
accepted
up vote
10
down vote
accepted
I have the Menu
key very close to the Ctrl and left-arrow keys.
xmodmap -e 'keycode 135 = 0x0000'
To get a first impression what keycodes are mapped to which keys, just type:
xmodmap -pke
which gives you a list of all mappings. For example, the line
keycode 57 = n N
means that the keycode 57 is mapped to a lowercase "n" if no extra key is pressed, and an uppercase "N" if Shift is held.
Some references to get around with things.
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- ArchWiki has a good description for xmodmap
I have the Menu
key very close to the Ctrl and left-arrow keys.
xmodmap -e 'keycode 135 = 0x0000'
To get a first impression what keycodes are mapped to which keys, just type:
xmodmap -pke
which gives you a list of all mappings. For example, the line
keycode 57 = n N
means that the keycode 57 is mapped to a lowercase "n" if no extra key is pressed, and an uppercase "N" if Shift is held.
Some references to get around with things.
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- ArchWiki has a good description for xmodmap
edited Aug 22 '16 at 14:58
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
karel
50.6k11107127
50.6k11107127
answered Jul 25 '11 at 7:34
nik
1,148716
1,148716
what can I do to disable '/' key?
â shravan
Jul 19 '15 at 7:06
add a comment |Â
what can I do to disable '/' key?
â shravan
Jul 19 '15 at 7:06
what can I do to disable '/' key?
â shravan
Jul 19 '15 at 7:06
what can I do to disable '/' key?
â shravan
Jul 19 '15 at 7:06
add a comment |Â
up vote
9
down vote
Example to disable/enable backspace:
# Disable
$ xmodmap -e 'keycode 22 = '
# Enable
$ xmodmap -e 'keycode 22 = BackSpace'
where 22 needs to be replaced by the output of xev
while pressing backspace.
1
Great, thanks. I'm always hitting "Insert" by mistake when I hit the End key, and I just remapped Insert to the End function :)
â Max Williams
Apr 17 at 14:25
add a comment |Â
up vote
9
down vote
Example to disable/enable backspace:
# Disable
$ xmodmap -e 'keycode 22 = '
# Enable
$ xmodmap -e 'keycode 22 = BackSpace'
where 22 needs to be replaced by the output of xev
while pressing backspace.
1
Great, thanks. I'm always hitting "Insert" by mistake when I hit the End key, and I just remapped Insert to the End function :)
â Max Williams
Apr 17 at 14:25
add a comment |Â
up vote
9
down vote
up vote
9
down vote
Example to disable/enable backspace:
# Disable
$ xmodmap -e 'keycode 22 = '
# Enable
$ xmodmap -e 'keycode 22 = BackSpace'
where 22 needs to be replaced by the output of xev
while pressing backspace.
Example to disable/enable backspace:
# Disable
$ xmodmap -e 'keycode 22 = '
# Enable
$ xmodmap -e 'keycode 22 = BackSpace'
where 22 needs to be replaced by the output of xev
while pressing backspace.
answered Mar 8 '17 at 8:50
![](https://lh3.googleusercontent.com/-GGE17JX4bDM/AAAAAAAAAAI/AAAAAAAAP5E/8wvOc5hw_qE/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-GGE17JX4bDM/AAAAAAAAAAI/AAAAAAAAP5E/8wvOc5hw_qE/photo.jpg?sz=32)
orschiro
4,81763890
4,81763890
1
Great, thanks. I'm always hitting "Insert" by mistake when I hit the End key, and I just remapped Insert to the End function :)
â Max Williams
Apr 17 at 14:25
add a comment |Â
1
Great, thanks. I'm always hitting "Insert" by mistake when I hit the End key, and I just remapped Insert to the End function :)
â Max Williams
Apr 17 at 14:25
1
1
Great, thanks. I'm always hitting "Insert" by mistake when I hit the End key, and I just remapped Insert to the End function :)
â Max Williams
Apr 17 at 14:25
Great, thanks. I'm always hitting "Insert" by mistake when I hit the End key, and I just remapped Insert to the End function :)
â Max Williams
Apr 17 at 14:25
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f54417%2fhow-to-disable-keys-from-the-keyboard%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password