Changeset 6523 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 28, 2008 10:35:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/darwin/DarwinKeyboard.cpp
r5999 r6523 75 75 #define QZ_RALT 0x3D 76 76 #define QZ_RCTRL 0x3E 77 /* Found the definition of the fn-key in: 78 * http://stuff.mit.edu/afs/sipb/project/darwin/src/modules/IOHIDFamily/IOHIDSystem/IOHIKeyboardMapper.cpp & 79 * http://stuff.mit.edu/afs/sipb/project/darwin/src/modules/AppleADBKeyboard/AppleADBKeyboard.cpp 80 * Maybe we need this in the future.*/ 81 #define QZ_FN 0x3F 77 82 #define QZ_NUMLOCK 0x47 78 83 … … 333 338 /** @todo find symbols for these keycodes... */ 334 339 fModifiers &= shiftKey | rightShiftKey | controlKey | rightControlKey | optionKey | rightOptionKey | cmdKey 335 | kEventKeyModifierRightCmdKeyMask | kEventKeyModifierNumLockMask | alphaLock ;340 | kEventKeyModifierRightCmdKeyMask | kEventKeyModifierNumLockMask | alphaLock | kEventKeyModifierFnMask; 336 341 if (fModifiers == shiftKey) 337 342 uKeyCode = QZ_LSHIFT; … … 354 359 else if (fModifiers == kEventKeyModifierNumLockMask) 355 360 uKeyCode = QZ_NUMLOCK; 361 else if (fModifiers == kEventKeyModifierFnMask) 362 uKeyCode = QZ_FN; 356 363 else if (fModifiers == 0) 357 364 uKeyCode = 0; … … 394 401 else if (uKeyCode == QZ_NUMLOCK) 395 402 fModifiers = kEventKeyModifierNumLockMask; 403 else if (uKeyCode == QZ_FN) 404 fModifiers = kEventKeyModifierFnMask; 396 405 else 397 406 fModifiers = 0;
Note:
See TracChangeset
for help on using the changeset viewer.