Version: unspecified (using KDE 4.4.5) OS: Linux No escape sequence is generated for pc101 keyboard keypad keys KP/,...KP5. Reproducible: Always Steps to Reproduce: Try to configure it in the konsole profile editor. Actual Results: Pressing KP5 does nothing. Expected Results: Nothing. Returned an escape sequence like ESC [ A
The profile editor I refer to is: konsole menu->Settings->Edit Current Profile->Input->Default (Xfree4). The dialog expects you to strike a key to populate one listbox and enter the command it is supposed to perform in another listbox. But KP5 produces nothing in the first listbox. Clarification: KP/,KP*,KP-,KP+ produce /,*,-,+ instead of escape sequences. e.g. gnome-terminal returns ESC[E for KP5 and ESCOj for KP*. It would be nice if all the flavors of keypad keys were unique, as well. i.e. KP/, Shift-KP/, Control-KP/ and Alt-KP/ but the bare keys alone would be wonderful.
Two days, but I bent konsole keytab to my will! The fix is: 1) xmodmap -pke > mymodmap 2) change mymodmap entry to "keycode 84 = KP_5 KP_5 KP_5 KP_5" 3) xmodmap mymodmap 4) copy default.keymap to my.keymap 5) edit my.keymap to include key 5+KeyPad+AppKeyPad : "\EOE" key 5+KeyPad-AppCursorKeys : "5" 6) use konsole profile editor to use my.keymap My testing shows that, with NumLock on, KP5 delivers '5' and with NumLock off (using my program that shows raw keys) delivers ESC O E. I did this with KP*, KP- and KP+, as well. Unfortunately, KP* returns '1' with NumLock on. I did this with KP/, but it always returns '/'. When konsole reads the keymap, it filters out the '/' entry. So this bug is not 100% fixed. KP* and KP/ are both 'broken'. But I can live with what I did succeed at doing.