VirtualBox

Ignore:
Timestamp:
Jul 7, 2008 1:48:02 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt: Linux host keyboard fixes

Location:
trunk/src/VBox/Frontends/VirtualBox4/src/linux
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-layouts.h

    r9894 r10322  
    6161};
    6262
    63 /* U.S. English, no 102nd key */
    64 static const char main_key_us_101[MAIN_LEN][2] =
    65 {
    66 "`~","1!","2@","3#","4$","5%","6^","7&","8*","9(","0)","-_","=+",
    67 "qQ","wW","eE","rR","tT","yY","uU","iI","oO","pP","[{","]}",
    68 "aA","sS","dD","fF","gG","hH","jJ","kK","lL",";:","'\"","\\|",
    69 "zZ","xX","cC","vV","bB","nN","mM",",<",".>","/?","\x0\x0","\x0\x0","\x0\x0"
    70 };
    71 
    7263/* U.S. English, International (with dead keys) */
    7364static const char main_key_us_intl[MAIN_LEN][2] =
     
    1006997};
    1007998
     999/* Germany, paragraph */
     1000static const char main_key_de_para[MAIN_LEN][2] =
     1001{
     1002"R\xb0","1!","2\"","3\xb6","4$","5%","6&","7/","8(","9)","0=","\xdf?","QP",
     1003"qQ","wW","eE","rR","tT","zZ","uU","iI","oO","pP","\xfc\xdc","+*",
     1004"aA","sS","dD","fF","gG","hH","jJ","kK","lL","\xf6\xd6","\xe4\xc4","#'",
     1005"yY","xX","cC","vV","bB","nN","mM",",;",".:","-_","<>","\x0\x0","\x0\x0"
     1006};
     1007
     1008/* Germany, Dead acute, paragraph */
     1009static const char main_key_de_deadacute_para[MAIN_LEN][2] =
     1010{
     1011"^\xb0","1!","2\"","3\xb6","4$","5%","6&","7/","8(","9)","0=","\xdf?","Q`",
     1012"qQ","wW","eE","rR","tT","zZ","uU","iI","oO","pP","\xfc\xdc","+*",
     1013"aA","sS","dD","fF","gG","hH","jJ","kK","lL","\xf6\xd6","\xe4\xc4","#'",
     1014"yY","xX","cC","vV","bB","nN","mM",",;",".:","-_","<>","\x0\x0","\x0\x0"
     1015};
     1016
     1017/* Germany, Dead grave acute, paragraph */
     1018static const char main_key_de_deadgraveacute_para[MAIN_LEN][2] =
     1019{
     1020"^\xb0","1!","2\"","3\xb6","4$","5%","6&","7/","8(","9)","0=","\xdf?","QP",
     1021"qQ","wW","eE","rR","tT","zZ","uU","iI","oO","pP","\xfc\xdc","+*",
     1022"aA","sS","dD","fF","gG","hH","jJ","kK","lL","\xf6\xd6","\xe4\xc4","#'",
     1023"yY","xX","cC","vV","bB","nN","mM",",;",".:","-_","<>","\x0\x0","\x0\x0"
     1024};
     1025
     1026/* Germany, Eliminate dead keys, paragraph */
     1027static const char main_key_de_nodeadkeys_para[MAIN_LEN][2] =
     1028{
     1029"^\xb0","1!","2\"","3\xb6","4$","5%","6&","7/","8(","9)","0=","\xdf?","\xb4`",
     1030"qQ","wW","eE","rR","tT","zZ","uU","iI","oO","pP","\xfc\xdc","+*",
     1031"aA","sS","dD","fF","gG","hH","jJ","kK","lL","\xf6\xd6","\xe4\xc4","#'",
     1032"yY","xX","cC","vV","bB","nN","mM",",;",".:","-_","<>","\x0\x0","\x0\x0"
     1033};
     1034
     1035/* Germany, Eliminate dead keys, acute replaced by apostrophe, paragraph */
     1036static const char main_key_de_nodeadkeys_noacute_para[MAIN_LEN][2] =
     1037{
     1038"^\xb0","1!","2\"","3\xb6","4$","5%","6&","7/","8(","9)","0=","\xdf?","\x27`",
     1039"qQ","wW","eE","rR","tT","zZ","uU","iI","oO","pP","\xfc\xdc","+*",
     1040"aA","sS","dD","fF","gG","hH","jJ","kK","lL","\xf6\xd6","\xe4\xc4","#'",
     1041"yY","xX","cC","vV","bB","nN","mM",",;",".:","-_","<>","\x0\x0","\x0\x0"
     1042};
     1043
     1044/* Germany, Dvorak, paragraph */
     1045static const char main_key_de_dvorak_para[MAIN_LEN][2] =
     1046{
     1047"^\xb0","1!","2\"","3\xb6","4$","5%","6&","7/","8(","9)","0=","+*","<>",
     1048"\xfc\xdc",",;",".:","pP","yY","fF","gG","cC","tT","zZ","?\xdf","/\\",
     1049"aA","oO","eE","iI","uU","hH","dD","rR","nN","sS","lL","-_",
     1050"\xf6\xd6","qQ","jJ","kK","xX","bB","mM","wW","vV","#'","\xe4\xc4","\x0\x0","\x0\x0"
     1051};
     1052
    10081053/* Greece */
    10091054static const char main_key_gr[MAIN_LEN][2] =
     
    11531198static const char main_key_jp[MAIN_LEN][2] =
    11541199{
    1155 "*!","1!","2\"","3#","4$","5%","6&","7'","8(","9)","0~","-=","^~",
     1200"\x0\x0","1!","2\"","3#","4$","5%","6&","7'","8(","9)","0~","-=","^~",
    11561201"qQ","wW","eE","rR","tT","yY","uU","iI","oO","pP","@`","[{",
    11571202"aA","sS","dD","fF","gG","hH","jJ","kK","lL",";+",":*","]}",
    11581203"zZ","xX","cC","vV","bB","nN","mM",",<",".>","/?","<>","\\_","\\|"
    1159 };
    1160 
    1161 /* Japan no 102nd key */
    1162 static const char main_key_jp_no_102[MAIN_LEN][2] =
    1163 {
    1164 "*!","1!","2\"","3#","4$","5%","6&","7'","8(","9)","0~","-=","^~",
    1165 "qQ","wW","eE","rR","tT","yY","uU","iI","oO","pP","@`","[{",
    1166 "aA","sS","dD","fF","gG","hH","jJ","kK","lL",";+",":*","]}",
    1167 "zZ","xX","cC","vV","bB","nN","mM",",<",".>","/?","\x0\x0","\\_","\\|"
    11681204};
    11691205
  • trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-list.h

    r9894 r10322  
    3636
    3737 {"U.S. English", &main_key_us},
    38  {"U.S. English, no 102nd key", &main_key_us_101},
    3938 {"U.S. English, International (with dead keys)", &main_key_us_intl},
    4039 {"U.S. English, Dvorak", &main_key_us_dvorak},
     
    141140 {"Germany, Dvorak", &main_key_de_dvorak},
    142141 {"Germany, Neostyle", &main_key_de_neo},
     142 {"Germany, paragraph", &main_key_de_para},
     143 {"Germany, Dead acute, paragraph", &main_key_de_deadacute_para},
     144 {"Germany, Dead grave acute, paragraph", &main_key_de_deadgraveacute_para},
     145 {"Germany, Eliminate dead keys, paragraph", &main_key_de_nodeadkeys_para},
     146 {"Germany, Eliminate dead keys, acute replaced by apostrophe, paragraph", &main_key_de_nodeadkeys_noacute_para},
     147 {"Germany, Dvorak, paragraph", &main_key_de_dvorak_para},
    143148 {"Greece", &main_key_gr},
    144149 {"Greece, Eliminate dead keys", &main_key_gr_nodeadkeys},
     
    158163 {"Italy, Macintosh", &main_key_it_mac},
    159164 {"Japan", &main_key_jp},
    160  {"Japan, no 102nd key", &main_key_jp_no_102},
    161165 {"Kyrgyzstan", &main_key_kg},
    162166 {"Cambodia", &main_key_kh},
  • trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-new.c

    r9991 r10322  
    364364    }
    365365    LOG_KB_1(("Finished mapping keyboard, matches=%d, entries=%d\n", matches, entries));
     366#if 0 /* This can happen in a few situations, like a 101-key keyboard matched
     367       * with a 102-key map.  Usually harmless, and if it isn't we will have
     368       * to investigate in more detail than a layout dump will bring anyway. */
    366369    if (matches != entries)
    367370    {
    368371        return 0;
    369372    }
     373#endif
    370374    return 1;
    371375}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette