Changeset 45867 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 1, 2013 9:07:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp
r45866 r45867 399 399 { 400 400 MSG peekMsg; 401 BYTE auKeyStates[256] =401 const BYTE auKeyStates[256] = 402 402 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x80, 0x80 }; 403 403 WORD ach; … … 407 407 return false; 408 408 LogRel(("Got an LCtrl event.\n")); 409 for (i = '0'; i <= '9'; ++i) 410 if (ToAscii(i, 0, auKeyStates, &ach, 0)) 411 break; 412 if (i > '9') 413 return false; 414 LogRel(("One of the number keys has an AltGr state.\n")); 409 415 if (!PeekMessage(&peekMsg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_NOREMOVE)) 410 416 return false; … … 422 428 return false; 423 429 LogRel(("The next keyboard event is RAlt.\n")); 424 for (i = '0'; i <= '9'; ++i)425 if (ToAscii(i, 0, auKeyStates, &ach, 0))426 break;427 if (i > '9')428 return false;429 LogRel(("One of the number keys has an AltGr state.\n"));430 430 return true; 431 431 }
Note:
See TracChangeset
for help on using the changeset viewer.