Changeset 23984 in vbox
- Timestamp:
- Oct 22, 2009 1:55:41 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53817
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r23801 r23984 2094 2094 /* These special keys have to be handled by Windows as well to update the 2095 2095 * internal modifier state and to enable/disable the keyboard LED */ 2096 if (vkey == VK_NUMLOCK || vkey == VK_CAPITAL )2096 if (vkey == VK_NUMLOCK || vkey == VK_CAPITAL || vkey == VK_SHIFT) 2097 2097 return false; 2098 2098 … … 2573 2573 codes[(*count)++] = 0x3a; 2574 2574 codes[(*count)++] = 0x3a | 0x80; 2575 /* Some keyboard layouts require shift to be pressed to break 2576 * capslock. For simplicity, only do this if shift is not 2577 * already held down. */ 2578 if (mCapsLock && !(mPressedKeys [0x2a] & IsKeyPressed)) 2579 { 2580 codes[(*count)++] = 0x2a; 2581 codes[(*count)++] = 0x2a | 0x80; 2582 } 2575 2583 } 2576 2584 … … 2588 2596 codes[(*count)++] = 0x3a; 2589 2597 codes[(*count)++] = 0x3a | 0x80; 2598 /* Some keyboard layouts require shift to be pressed to break 2599 * capslock. For simplicity, only do this if shift is not 2600 * already held down. */ 2601 if (mCapsLock && !(mPressedKeys [0x2a] & IsKeyPressed)) 2602 { 2603 codes[(*count)++] = 0x2a; 2604 codes[(*count)++] = 0x2a | 0x80; 2605 } 2590 2606 } 2591 2607 … … 2598 2614 codes[(*count)++] = 0x3a; 2599 2615 codes[(*count)++] = 0x3a | 0x80; 2616 /* Some keyboard layouts require shift to be pressed to break 2617 * capslock. For simplicity, only do this if shift is not 2618 * already held down. */ 2619 if (mCapsLock && !(mPressedKeys [0x2a] & IsKeyPressed)) 2620 { 2621 codes[(*count)++] = 0x2a; 2622 codes[(*count)++] = 0x2a | 0x80; 2623 } 2600 2624 } 2601 2625
Note:
See TracChangeset
for help on using the changeset viewer.