[Konsole-devel] [Bug 213579] New: ignores keypad when numlock is off

Sergei Ivanov svivanov at pdmi.ras.ru
Sat Nov 7 17:33:38 UTC 2009


https://bugs.kde.org/show_bug.cgi?id=213579

           Summary: ignores keypad when numlock is off
           Product: konsole
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel at kde.org
        ReportedBy: svivanov at pdmi.ras.ru


Version:            (using KDE 4.3.3)
OS:                Linux
Installed from:    Ubuntu Packages

A 104-key PC keyboard has a 'numeric keypad' section that produces digits when
NumLock is on, and cursor movement keys (arrows etc) when NumLock is off. This
keypad does not work under konsole when NumLock is off - the keys are just
ignored (unless you hold a modifier like shift or alt). Tested this on two
x86-64 Linux boxes (one is a generic PC desktop and another is a Toshiba
laptop).

Expected behavior: when NumLock is off, these keys should produce the same
escape sequences as the PC XT cursor movement keys.

Using a recipe found in someone's blog, I fixed this for myself by the patch
included below. This is applied to the file 'default.keytab' found in
/usr/share/kde4/apps/konsole upon installation.

--- default.keytab      2009-02-18 19:28:38.000000000 +0300
+++ my.keytab   2009-11-01 21:45:08.000000000 +0300
@@ -83,6 +83,27 @@
 #key * +KeyPad+AppKeyPad : "\EOM"
 #key Enter +KeyPad+AppKeyPad : "\r"

+# Keypad keys with NumLock Off
+key Up -Shift+Ansi+AppCuKeys+KeyPad : "\EOA"
+key Down -Shift+Ansi+AppCuKeys+KeyPad : "\EOB"
+key Right -Shift+Ansi+AppCuKeys+KeyPad : "\EOC"
+key Left -Shift+Ansi+AppCuKeys+KeyPad : "\EOD"
+
+key Up -Shift+Ansi-AppCuKeys+KeyPad : "\E[A"
+key Down -Shift+Ansi-AppCuKeys+KeyPad : "\E[B"
+key Right -Shift+Ansi-AppCuKeys+KeyPad : "\E[C"
+key Left -Shift+Ansi-AppCuKeys+KeyPad : "\E[D"
+
+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~"
+
 # other grey PC keys

 key Enter+NewLine : "\r\n"

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list