Changeset 1007 in vbox
- Timestamp:
- Feb 21, 2007 12:55:03 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 18851
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r896 r1007 844 844 if (hostkey_pressed) 845 845 { 846 if (ke->key() == Key_F10) 846 if (ke->key() >= Key_F1 && ke->key() <= Key_F12) 847 { 848 LONG combo [6]; 849 combo [0] = 0x1d; /* Ctrl down */ 850 combo [1] = 0x38; /* Alt down */ 851 combo [4] = 0xb8; /* Alt up */ 852 combo [5] = 0x9d; /* Ctrl up */ 853 if (ke->key() >= Key_F1 && ke->key() <= Key_F10) 854 { 855 combo [2] = 0x3b + (ke->key() - Key_F1); /* F1-F10 down */ 856 combo [3] = 0xbb + (ke->key() - Key_F1); /* F1-F10 up */ 857 } 858 /* some scan slice */ 859 else if (ke->key() >= Key_F11 && ke->key() <= Key_F12) 860 { 861 combo [2] = 0x57 + (ke->key() - Key_F11); /* F11-F12 down */ 862 combo [3] = 0xd7 + (ke->key() - Key_F11); /* F11-F12 up */ 863 } 864 else 865 Assert (0); 866 867 CKeyboard keyboard = cconsole.GetKeyboard(); 868 Assert (!keyboard.isNull()); 869 keyboard.PutScancodes (combo, 6); 870 } 871 else if (ke->key() == Key_Home) 847 872 { 848 873 mainwnd->menuBar()->setFocus();
Note:
See TracChangeset
for help on using the changeset viewer.