Changeset 71066 in vbox
- Timestamp:
- Feb 20, 2018 9:49:57 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120929
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlConsole.cpp
r71052 r71066 37 37 { 38 38 /* Configure this: */ 39 setUndoRedoEnabled(false); 39 40 setWordWrapMode(QTextOption::NoWrap); 40 41 reset(); … … 92 93 case Qt::Key_Down: 93 94 { 94 if (lastLine) 95 replaceLineContent(getNextCommandFromHistory(getCommandString())); 95 replaceLineContent(getNextCommandFromHistory(getCommandString())); 96 96 break; 97 97 } … … 138 138 } 139 139 default: 140 if (lastLine) 140 { 141 if(pEvent->modifiers() == Qt::ControlModifier && pEvent->key() == Qt::Key_C) 142 { 141 143 QPlainTextEdit::keyPressEvent(pEvent); 144 } 145 else 146 { 147 if (lastLine) 148 QPlainTextEdit::keyPressEvent(pEvent); 149 } 150 } 142 151 break; 143 152 } … … 180 189 void UIGuestControlConsole::replaceLineContent(const QString &stringNewContent) 181 190 { 191 moveCursor(QTextCursor::End); 182 192 QTextCursor cursor = textCursor(); 183 193 cursor.movePosition(QTextCursor::StartOfLine, QTextCursor::KeepAnchor);
Note:
See TracChangeset
for help on using the changeset viewer.