Changeset 64690 in vbox
- Timestamp:
- Nov 17, 2016 2:31:31 PM (8 years ago)
- Location:
- trunk/src/VBox/Debugger
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgConsole.cpp
r63567 r64690 823 823 824 824 void 825 VBoxDbgConsole::keyReleaseEvent(QKeyEvent *pEvent) 826 { 827 //RTAssertMsg2("VBoxDbgConsole::keyReleaseEvent: %d (%#x); mod=%#x\n", pEvent->key(), pEvent->key(), pEvent->modifiers()); 828 switch (pEvent->key()) 829 { 830 case Qt::Key_F5: 831 if (pEvent->modifiers() == 0) 832 commandSubmitted("g"); 833 break; 834 835 case Qt::Key_F11: 836 if (pEvent->modifiers() == 0) 837 commandSubmitted("t"); 838 break; 839 840 case Qt::Key_Cancel: /* == break */ 841 if (pEvent->modifiers() == Qt::ControlModifier) 842 commandSubmitted("stop"); 843 break; 844 case Qt::Key_Delete: 845 if (pEvent->modifiers() == Qt::AltModifier) 846 commandSubmitted("stop"); 847 break; 848 } 849 } 850 851 852 void 825 853 VBoxDbgConsole::closeEvent(QCloseEvent *a_pCloseEvt) 826 854 { -
trunk/src/VBox/Debugger/VBoxDbgConsole.h
r62480 r64690 297 297 */ 298 298 bool event(QEvent *pEvent); 299 300 /** 301 * For implementing keyboard shortcuts. 302 * 303 * @param pEvent The key event. 304 */ 305 void keyReleaseEvent(QKeyEvent *pEvent); 299 306 300 307 protected:
Note:
See TracChangeset
for help on using the changeset viewer.