Edit

kc3-lang/libxkbcommon/test/data/keycodes/aliases-xkbcommon

Branch :

  • Show log

    Commit

  • Author : Ran Benita
    Date : 2012-09-27 20:16:12
    Hash : 92e07726
    Message : test: add keycodes files which map directly to evdev codes This is a proof-of-concept for the long key names. The keycodes in the file evdev-xkbcommon are autogenerated from linux/input.h, and uses the names given there; all of the previous names are aliased to the new names, so they continue to work with the symbols files, etc. You can try it with 'sudo ./test/interactive -r evdev-xkbcommon -n 0' The -n 0 means that we don't offset the evdev scan codes - just feed them directly. The -r evdev-xkbcommon just means to use a new rules file which makes us use the new keycodes file. (The only problem I can see is with the MENU and LSGT names which has some conflicts). Maybe some day xkeyboard-config could ship something similar, so that the 8 offset is unneeded. Signed-off-by: Ran Benita <ran234@gmail.com>

  • test/data/keycodes/aliases-xkbcommon
  • // keycode aliases for phonetic keyboard maps
    
    default
    xkb_keycodes "qwerty" {
    
       alias <LatQ> = <Q>;
       alias <LatW> = <W>;
       alias <LatE> = <E>;
       alias <LatR> = <R>;
       alias <LatT> = <T>;
       alias <LatY> = <Y>;
       alias <LatU> = <U>;
       alias <LatI> = <I>;
       alias <LatO> = <O>;
       alias <LatP> = <P>;
    
       alias <LatA> = <A>;
       alias <LatS> = <S>;
       alias <LatD> = <D>;
       alias <LatF> = <F>;
       alias <LatG> = <G>;
       alias <LatH> = <H>;
       alias <LatJ> = <J>;
       alias <LatK> = <K>;
       alias <LatL> = <L>;
    
       alias <LatZ> = <Z>;
       alias <LatX> = <X>;
       alias <LatC> = <C>;
       alias <LatV> = <V>;
       alias <LatB> = <B>;
       alias <LatN> = <N>;
       alias <LatM> = <M>;
    };
    
    xkb_keycodes "azerty" {
    
       alias <LatA> = <Q>;
       alias <LatZ> = <W>;
       alias <LatE> = <E>;
       alias <LatR> = <R>;
       alias <LatT> = <T>;
       alias <LatY> = <Y>;
       alias <LatU> = <U>;
       alias <LatI> = <I>;
       alias <LatO> = <O>;
       alias <LatP> = <P>;
    
       alias <LatQ> = <A>;
       alias <LatS> = <S>;
       alias <LatD> = <D>;
       alias <LatF> = <F>;
       alias <LatG> = <G>;
       alias <LatH> = <H>;
       alias <LatJ> = <J>;
       alias <LatK> = <K>;
       alias <LatL> = <L>;
       alias <LatM> = <SEMICOLON>;
    
       alias <LatW> = <Z>;
       alias <LatX> = <X>;
       alias <LatC> = <C>;
       alias <LatV> = <V>;
       alias <LatB> = <B>;
       alias <LatN> = <N>;
    };
    
    xkb_keycodes "qwertz" {
    
       alias <LatQ> = <Q>;
       alias <LatW> = <W>;
       alias <LatE> = <E>;
       alias <LatR> = <R>;
       alias <LatT> = <T>;
       alias <LatZ> = <Y>;
       alias <LatU> = <U>;
       alias <LatI> = <I>;
       alias <LatO> = <O>;
       alias <LatP> = <P>;
    
       alias <LatA> = <A>;
       alias <LatS> = <S>;
       alias <LatD> = <D>;
       alias <LatF> = <F>;
       alias <LatG> = <G>;
       alias <LatH> = <H>;
       alias <LatJ> = <J>;
       alias <LatK> = <K>;
       alias <LatL> = <L>;
    
       alias <LatY> = <Z>;
       alias <LatX> = <X>;
       alias <LatC> = <C>;
       alias <LatV> = <V>;
       alias <LatB> = <B>;
       alias <LatN> = <N>;
       alias <LatM> = <M>;
    };