четверг, 28 июня 2012 г.

Минт - (пере)маппирование клавиш клавиатуры

В чем проблема? Не работает Энетер который в нумпаде...

Текущие состояние дел покажет xev

KeyPress event, serial 33, synthetic NO, window 0x3e00001,
    root 0x137, subw 0x0, time 19285204, (688,648), root:(691,696),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
"   XmbLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3e00001,
    root 0x137, subw 0x0, time 19285309, (688,648), root:(691,696),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x3e00001,
    root 0x137, subw 0x0, time 19305238, (688,648), root:(691,696),
    state 0x10, keycode 104 (keysym 0xff0d, KB_Enter), same_screen YES,
    XKeysymToKeycode returns keycode: 36
"   XLookupString gives 1 bytes: (0d) "
"   XmbLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3e00001,
    root 0x137, subw 0x0, time 19305332, (688,648), root:(691,696),
    state 0x10, keycode 104 (keysym 0xff0d,
KB_Enter), same_screen YES,
    XKeysymToKeycode returns keycode: 36
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False




Запускаем команду...
xmodmap -e 'keycode 104=Return'

смотрим результат


KeyPress event, serial 33, synthetic NO, window 0x3e00001,
    root 0x137, subw 0x0, time 19305238, (688,648), root:(691,696),
    state 0x10, keycode 104 (keysym 0xff0d, Return), same_screen YES,
    XKeysymToKeycode returns keycode: 36
"   XLookupString gives 1 bytes: (0d) "
"   XmbLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3e00001,
    root 0x137, subw 0x0, time 19305332, (688,648), root:(691,696),
    state 0x10, keycode 104 (keysym 0xff0d,
Return), same_screen YES,
    XKeysymToKeycode returns keycode: 36
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False


Комментариев нет:

Отправить комментарий