Changeset 11655 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 26, 2008 12:01:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r11574 r11655 1388 1388 if (ke->key() >= Key_F1 && ke->key() <= Key_F12) 1389 1389 { 1390 LONG combo [6];1390 QValueVector <LONG> combo (6); 1391 1391 combo [0] = 0x1d; /* Ctrl down */ 1392 1392 combo [1] = 0x38; /* Alt down */ … … 1408 1408 1409 1409 CKeyboard keyboard = mConsole.GetKeyboard(); 1410 keyboard.PutScancodes (combo , 6);1410 keyboard.PutScancodes (combo); 1411 1411 } 1412 1412 else if (ke->key() == Key_Home) … … 2615 2615 #endif 2616 2616 2617 keyboard.PutScancodes (codes, count); 2617 std::vector <LONG> tmp(codes, &codes[count]); 2618 QValueVector <LONG> scancodes (tmp); 2619 keyboard.PutScancodes (scancodes); 2618 2620 2619 2621 /* grab the key from Qt */ … … 3185 3187 fSentRESEND = true; 3186 3188 } 3187 LONG codes [2];3189 QValueVector <LONG> codes (2); 3188 3190 codes[0] = 0xE0; 3189 3191 codes[1] = i | 0x80; 3190 keyboard.PutScancodes (codes , 2);3192 keyboard.PutScancodes (codes); 3191 3193 } 3192 3194 mPressedKeys [i] = 0; … … 3215 3217 AssertMsg (mAttached, ("Console must be attached")); 3216 3218 3217 LONG codes [2];3219 QValueVector <LONG> codes (2); 3218 3220 CKeyboard keyboard = mConsole.GetKeyboard(); 3219 3221 for (uint i = 0; i < SIZEOF_ARRAY (mPressedKeys); ++ i) … … 3234 3236 if (!(ns & IsExtKeyPressed)) 3235 3237 codes [1] |= 0x80; 3236 keyboard.PutScancodes (codes , 2);3238 keyboard.PutScancodes (codes); 3237 3239 } 3238 3240 }
Note:
See TracChangeset
for help on using the changeset viewer.