| Summary: | konsole generates no escape sequence for KP/, KP*, KP-, KP+ or KP5 keypad keys | ||
|---|---|---|---|
| Product: | [Applications] konsole | Reporter: | Gregory Kizior <gkizior> |
| Component: | general | Assignee: | Konsole Bugs <konsole-bugs-null> |
| Status: | RESOLVED DOWNSTREAM | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | RedHat Enterprise Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Gregory Kizior
2010-12-09 04:13:46 UTC
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. |