Changeset 38985 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 13, 2011 1:23:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r38928 r38985 1522 1522 int iDummy3, iDummy4, iDummy5, iDummy6; 1523 1523 unsigned uMask; 1524 unsigned uKeyMaskNum = 0, uKeyMaskCaps = 0 , uKeyMaskScroll = 0;1524 unsigned uKeyMaskNum = 0, uKeyMaskCaps = 0; 1525 1525 1526 1526 uKeyMaskCaps = LockMask; 1527 1527 XModifierKeymap* map = XGetModifierMapping(QX11Info::display()); 1528 1528 KeyCode keyCodeNum = XKeysymToKeycode(QX11Info::display(), XK_Num_Lock); 1529 KeyCode keyCodeScroll = XKeysymToKeycode(QX11Info::display(), XK_Scroll_Lock);1530 1529 1531 1530 for (int i = 0; i < 8; ++ i) 1532 {1533 1531 if (keyCodeNum != NoSymbol && map->modifiermap[map->max_keypermod * i] == keyCodeNum) 1534 1532 uKeyMaskNum = 1 << i; 1535 else if (keyCodeScroll != NoSymbol && map->modifiermap[map->max_keypermod * i] == keyCodeScroll)1536 uKeyMaskScroll = 1 << i;1537 }1538 1533 XQueryPointer(QX11Info::display(), DefaultRootWindow(QX11Info::display()), &wDummy1, &wDummy2, 1539 1534 &iDummy3, &iDummy4, &iDummy5, &iDummy6, &uMask);
Note:
See TracChangeset
for help on using the changeset viewer.