konsole ignores keypad when numlock is off
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdebase (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: konsole
I have kubuntu karmik beta installed on a Toshiba L505 laptop. This laptop has a full 104-keys keyboard with a numeric keypad section and a numlock key. In konsole, the keypad keys do not work when numlock is off. They seem to be completely ignored.
When numlock is on, they produce digits as expected. Even with numlock off, keypad keys with ctrl or alt produce some escape sequences, but without modifiers they do not.
Other applications (I checked xterm, konqueror and firefox) do not have this problem. The keypad also works normally in a console VT.
ProblemType: Bug
Architecture: amd64
Date: Tue Oct 20 11:20:44 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/kdeinit4
Package: kdelibs-bin 4:4.3.2-0ubuntu7
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: kde4libs
Uname: Linux 2.6.31-14-generic x86_64
I fixed this by adding the following lines to konsole's keytab file stochastic- randomness. blogspot. com/2009/ 08/konsole- numpad- fix-for- kde4.html):
(patch taken from http://
# Keypad keys with NumLock Off Ansi+AppCuKeys+ KeyPad : "\EOA" Ansi+AppCuKeys+ KeyPad : "\EOB" Ansi+AppCuKeys+ KeyPad : "\EOC" Ansi+AppCuKeys+ KeyPad : "\EOD"
key Up -Shift+
key Down -Shift+
key Right -Shift+
key Left -Shift+
key Up -Shift+ Ansi-AppCuKeys+ KeyPad : "\E[A" Ansi-AppCuKeys+ KeyPad : "\E[B" Ansi-AppCuKeys+ KeyPad : "\E[C" Ansi-AppCuKeys+ KeyPad : "\E[D"
key Down -Shift+
key Right -Shift+
key Left -Shift+
key Home +AppCuKeys+KeyPad : "\EOH"
key End +AppCuKeys+KeyPad : "\EOF"
key Home -AppCuKeys+KeyPad : "\E[H"
key End -AppCuKeys+KeyPad : "\E[F"
key Insert +KeyPad : "\E[2~"
key Delete +KeyPad : "\E[3~"
key Prior -Shift+KeyPad : "\E[5~"
key Next -Shift+KeyPad : "\E[6~"