Changeset 26819 in vbox
- Timestamp:
- Feb 26, 2010 9:35:45 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r26816 r26819 2472 2472 #elif defined(Q_WS_WIN32) 2473 2473 2474 if (uisession()->numLockAdaptionCnt() && ( m_fNumLock^ !!(GetKeyState(VK_NUMLOCK))))2474 if (uisession()->numLockAdaptionCnt() && (uisession()->isNumLock() ^ !!(GetKeyState(VK_NUMLOCK)))) 2475 2475 { 2476 2476 uisession()->setNumLockAdaptionCnt(uisession()->numLockAdaptionCnt() - 1); … … 2478 2478 piCodes[(*puCount)++] = 0x45 | 0x80; 2479 2479 } 2480 if (uisession()->capsLockAdaptionCnt() && ( m_fCapsLock^ !!(GetKeyState(VK_CAPITAL))))2480 if (uisession()->capsLockAdaptionCnt() && (uisession()->isCapsLock() ^ !!(GetKeyState(VK_CAPITAL)))) 2481 2481 { 2482 2482 uisession()->setCapsLockAdaptionCnt(uisession()->capsLockAdaptionCnt() - 1); … … 2486 2486 * capslock. For simplicity, only do this if shift is not 2487 2487 * already held down. */ 2488 if ( m_fCapsLock&& !(m_pressedKeys[0x2a] & IsKeyPressed))2488 if (uisession()->isCapsLock() && !(m_pressedKeys[0x2a] & IsKeyPressed)) 2489 2489 { 2490 2490 piCodes[(*puCount)++] = 0x2a; … … 2496 2496 2497 2497 /* if (uisession()->numLockAdaptionCnt()) ... - NumLock isn't implemented by Mac OS X so ignore it. */ 2498 if (uisession()->capsLockAdaptionCnt() && ( m_fCapsLock^ !!(::GetCurrentEventKeyModifiers() & alphaLock)))2498 if (uisession()->capsLockAdaptionCnt() && (uisession()->isCapsLock() ^ !!(::GetCurrentEventKeyModifiers() & alphaLock))) 2499 2499 { 2500 2500 uisession()->setCapsLockAdaptionCnt(uisession()->capsLockAdaptionCnt() - 1); … … 2504 2504 * capslock. For simplicity, only do this if shift is not 2505 2505 * already held down. */ 2506 if ( m_fCapsLock&& !(m_pressedKeys[0x2a] & IsKeyPressed))2506 if (uisession()->isCapsLock() && !(m_pressedKeys[0x2a] & IsKeyPressed)) 2507 2507 { 2508 2508 piCodes[(*puCount)++] = 0x2a; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r26816 r26819 1162 1162 1163 1163 /* Set the new cursor: */ 1164 m_cursor = cursor(QPixmap::fromImage(image), uXHot, uYHot);1164 m_cursor = QCursor(QPixmap::fromImage(image), uXHot, uYHot); 1165 1165 NOREF(srcShapePtrScan); 1166 1166
Note:
See TracChangeset
for help on using the changeset viewer.