VirtualBox

Changeset 71066 in vbox


Ignore:
Timestamp:
Feb 20, 2018 9:49:57 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120929
Message:

FE/Qt: bugref:6699 Small improvements to guest control console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlConsole.cpp

    r71052 r71066  
    3737{
    3838    /* Configure this: */
     39    setUndoRedoEnabled(false);
    3940    setWordWrapMode(QTextOption::NoWrap);
    4041    reset();
     
    9293        case Qt::Key_Down:
    9394        {
    94             if (lastLine)
    95                 replaceLineContent(getNextCommandFromHistory(getCommandString()));
     95            replaceLineContent(getNextCommandFromHistory(getCommandString()));
    9696            break;
    9797        }
     
    138138        }
    139139        default:
    140             if (lastLine)
     140        {
     141            if(pEvent->modifiers() == Qt::ControlModifier && pEvent->key() == Qt::Key_C)
     142            {
    141143                QPlainTextEdit::keyPressEvent(pEvent);
     144            }
     145            else
     146            {
     147                if (lastLine)
     148                    QPlainTextEdit::keyPressEvent(pEvent);
     149            }
     150        }
    142151            break;
    143152    }
     
    180189void UIGuestControlConsole::replaceLineContent(const QString &stringNewContent)
    181190{
     191    moveCursor(QTextCursor::End);
    182192    QTextCursor cursor = textCursor();
    183193    cursor.movePosition(QTextCursor::StartOfLine, QTextCursor::KeepAnchor);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette