Changeset 24132 in vbox
- Timestamp:
- Oct 28, 2009 11:22:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r23984 r24132 1953 1953 * to specially treat ALT_GR to enter additional chars to regular apps). 1954 1954 * These events are definitely unwanted in VM, so filter them out. */ 1955 /* Note (michael): it also sometimes sends the VK_CAPITAL vkey with scan 1956 * code 0x23a. If this is not passed through then it is impossible to 1957 * cancel CapsLock on a French keyboard. I didn't find any other examples 1958 * of these strange events. Let's hope we are not missing anything else 1959 * of importance! */ 1955 1960 if (hasFocus() && (event.scanCode & ~0xFF)) 1956 return true; 1961 { 1962 if (event.vkCode == VK_CAPITAL) 1963 return false; 1964 else 1965 return true; 1966 } 1957 1967 1958 1968 if (!mKbdCaptured) … … 2094 2104 /* These special keys have to be handled by Windows as well to update the 2095 2105 * internal modifier state and to enable/disable the keyboard LED */ 2096 if (vkey == VK_NUMLOCK || vkey == VK_CAPITAL || vkey == VK_ SHIFT)2106 if (vkey == VK_NUMLOCK || vkey == VK_CAPITAL || vkey == VK_LSHIFT || vkey == VK_RSHIFT) 2097 2107 return false; 2098 2108
Note:
See TracChangeset
for help on using the changeset viewer.

