You are not logged in.

#1 2008-12-06 14:29:41

hack.augusto
Member
From: Brazil
Registered: 2008-08-28
Posts: 124

Strange keymap behavior on X - Zenkaku_Hankaku

Sometimes I press the number lock key and because i use a laptop it is quite annoying then I decided to remove the insert key from it's modifier group (inserting the "xmodmap -e 'clear mod2'" command in the ~/.xinit file), the problem is, when I do remove the number lock key I get a whole new set of modifiers:

# ~/.xinit with "xmodmap -e 'clear mod2'"

xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Linefeed (0x6d)
mod1        Alt_L (0x40),  Left (0x71),  XF86Launch1 (0x9c)
mod2      
mod3      
mod4        Pause (0x7f),  BadKey (0x80)
mod5        Zenkaku_Hankaku (0x5d),  XF86PowerOff (0x7c)


# without "xmodmap -e 'clear mod2'"

xmodmap:  up to 2 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

I'm probably going to live with number lock key, but why is that happening?

Last edited by hack.augusto (2008-12-06 14:30:07)

Offline

#2 2008-12-06 23:40:24

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Strange keymap behavior on X - Zenkaku_Hankaku

In my case its the Caps Lock key. I change its behaviour by putting in my ./.Xmodmap:

!  Caps Lock
keycode 66 = ISO_Level3_Shift

You have to execute "xmodmap ~/.Xmodmap" (put it in some kind of autostart).

This makes the Caps Lock behave like the Right-Alt key which by itself when pressed by mistake doesnt behave
baddly.

You can find the keycode for NumLock with "xev", but on my keyboard its a 66.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

Board footer

Powered by FluxBB