Changeset 10322 in vbox
- Timestamp:
- Jul 7, 2008 1:48:02 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/linux/keyboard-layouts.h
r9794 r10322 61 61 }; 62 62 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 72 63 /* U.S. English, International (with dead keys) */ 73 64 static const char main_key_us_intl[MAIN_LEN][2] = … … 1006 997 }; 1007 998 999 /* Germany, paragraph */ 1000 static 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 */ 1009 static 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 */ 1018 static 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 */ 1027 static 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 */ 1036 static 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 */ 1045 static 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 1008 1053 /* Greece */ 1009 1054 static const char main_key_gr[MAIN_LEN][2] = … … 1153 1198 static const char main_key_jp[MAIN_LEN][2] = 1154 1199 { 1155 " *!","1!","2\"","3#","4$","5%","6&","7'","8(","9)","0~","-=","^~",1200 "\x0\x0","1!","2\"","3#","4$","5%","6&","7'","8(","9)","0~","-=","^~", 1156 1201 "qQ","wW","eE","rR","tT","yY","uU","iI","oO","pP","@`","[{", 1157 1202 "aA","sS","dD","fF","gG","hH","jJ","kK","lL",";+",":*","]}", 1158 1203 "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","\\_","\\|"1168 1204 }; 1169 1205 -
trunk/src/VBox/Frontends/VirtualBox/src/linux/keyboard-list.h
r9794 r10322 36 36 37 37 {"U.S. English", &main_key_us}, 38 {"U.S. English, no 102nd key", &main_key_us_101},39 38 {"U.S. English, International (with dead keys)", &main_key_us_intl}, 40 39 {"U.S. English, Dvorak", &main_key_us_dvorak}, … … 141 140 {"Germany, Dvorak", &main_key_de_dvorak}, 142 141 {"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}, 143 148 {"Greece", &main_key_gr}, 144 149 {"Greece, Eliminate dead keys", &main_key_gr_nodeadkeys}, … … 158 163 {"Italy, Macintosh", &main_key_it_mac}, 159 164 {"Japan", &main_key_jp}, 160 {"Japan, no 102nd key", &main_key_jp_no_102},161 165 {"Kyrgyzstan", &main_key_kg}, 162 166 {"Cambodia", &main_key_kh}, -
trunk/src/VBox/Frontends/VirtualBox/src/linux/keyboard-new.c
r9991 r10322 364 364 } 365 365 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. */ 366 369 if (matches != entries) 367 370 { 368 371 return 0; 369 372 } 373 #endif 370 374 return 1; 371 375 } -
trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-layouts.h
r9894 r10322 61 61 }; 62 62 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 72 63 /* U.S. English, International (with dead keys) */ 73 64 static const char main_key_us_intl[MAIN_LEN][2] = … … 1006 997 }; 1007 998 999 /* Germany, paragraph */ 1000 static 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 */ 1009 static 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 */ 1018 static 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 */ 1027 static 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 */ 1036 static 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 */ 1045 static 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 1008 1053 /* Greece */ 1009 1054 static const char main_key_gr[MAIN_LEN][2] = … … 1153 1198 static const char main_key_jp[MAIN_LEN][2] = 1154 1199 { 1155 " *!","1!","2\"","3#","4$","5%","6&","7'","8(","9)","0~","-=","^~",1200 "\x0\x0","1!","2\"","3#","4$","5%","6&","7'","8(","9)","0~","-=","^~", 1156 1201 "qQ","wW","eE","rR","tT","yY","uU","iI","oO","pP","@`","[{", 1157 1202 "aA","sS","dD","fF","gG","hH","jJ","kK","lL",";+",":*","]}", 1158 1203 "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","\\_","\\|"1168 1204 }; 1169 1205 -
trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-list.h
r9894 r10322 36 36 37 37 {"U.S. English", &main_key_us}, 38 {"U.S. English, no 102nd key", &main_key_us_101},39 38 {"U.S. English, International (with dead keys)", &main_key_us_intl}, 40 39 {"U.S. English, Dvorak", &main_key_us_dvorak}, … … 141 140 {"Germany, Dvorak", &main_key_de_dvorak}, 142 141 {"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}, 143 148 {"Greece", &main_key_gr}, 144 149 {"Greece, Eliminate dead keys", &main_key_gr_nodeadkeys}, … … 158 163 {"Italy, Macintosh", &main_key_it_mac}, 159 164 {"Japan", &main_key_jp}, 160 {"Japan, no 102nd key", &main_key_jp_no_102},161 165 {"Kyrgyzstan", &main_key_kg}, 162 166 {"Cambodia", &main_key_kh}, -
trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-new.c
r9991 r10322 364 364 } 365 365 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. */ 366 369 if (matches != entries) 367 370 { 368 371 return 0; 369 372 } 373 #endif 370 374 return 1; 371 375 }
Note:
See TracChangeset
for help on using the changeset viewer.