You are not logged in.

#1 2010-12-14 01:08:59

sguenz
Member
Registered: 2008-03-11
Posts: 18

How to get Shift + Numeric Pad to work properly

I'm trying to get Shift + Numeric Pad to work the same way as Shift + Key Pad, i.e. to select text. Instead of that, it switches to typing number, as is NumLock is turned on.

I added this to xmodmap:

keycode  79 = Home NoSymbol Home
keycode  80 = Up NoSymbol Up
keycode  81 = Prior NoSymbol Prior
keycode  83 = Left NoSymbol Left
keycode  85 = Right NoSymbol Right
keycode  87 = End NoSymbol End
keycode  88 = Down NoSymbol Down
keycode  89 = Next NoSymbol Next

which works, but now I can't use NumLock to type numbers.

Has anyone done this before? Can you please post your solution.

Thanks.

Offline

#2 2010-12-14 12:31:56

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: How to get Shift + Numeric Pad to work properly

If I get you right, I have the desired functionality by default. The corresponding lines for me are:

keycode  79 = KP_Home KP_7 KP_Home KP_7
keycode  80 = KP_Up KP_8 KP_Up KP_8
keycode  81 = KP_Prior KP_9 KP_Prior KP_9
keycode  83 = KP_Left KP_4 KP_Left KP_4
keycode  85 = KP_Right KP_6 KP_Right KP_6
keycode  87 = KP_End KP_1 KP_End KP_1
keycode  88 = KP_Down KP_2 KP_Down KP_2
keycode  89 = KP_Next KP_3 KP_Next KP_3

It looks the same at all keyboard descriptions I could load with setxkbmap.

Last edited by barto (2010-12-15 19:06:42)


“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter

Offline

#3 2010-12-15 04:26:20

sguenz
Member
Registered: 2008-03-11
Posts: 18

Re: How to get Shift + Numeric Pad to work properly

I have the same keycodes by default but that's precisely the problem. When I use Shift + numeric pad, instead of selecting the text, I end up typing numbers.
Any other suggestions?

Offline

Board footer

Powered by FluxBB