Bug 259276 - konsole generates no escape sequence for KP/, KP*, KP-, KP+ or KP5 keypad keys
Summary: konsole generates no escape sequence for KP/, KP*, KP-, KP+ or KP5 keypad keys
Status: RESOLVED DOWNSTREAM
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 04:13 UTC by Gregory Kizior
Modified: 2010-12-11 13:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregory Kizior 2010-12-09 04:13:46 UTC
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
Comment 1 Gregory Kizior 2010-12-09 04:39:36 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.
Comment 2 Gregory Kizior 2010-12-11 02:54:05 UTC
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.