forked from qt-creator/qt-creator
Fixed the Goto Next/Previous Line actions
Due to the wrong enumerators being used, it was impossible to define custom shortcuts for these actions. Reviewed-by: mae Task-number: QTCREATORBUG-2139
This commit is contained in:
@@ -760,22 +760,22 @@ void BaseTextEditor::gotoLineEndWithSelection()
|
|||||||
|
|
||||||
void BaseTextEditor::gotoNextLine()
|
void BaseTextEditor::gotoNextLine()
|
||||||
{
|
{
|
||||||
moveCursor(QTextCursor::NextRow);
|
moveCursor(QTextCursor::Down);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseTextEditor::gotoNextLineWithSelection()
|
void BaseTextEditor::gotoNextLineWithSelection()
|
||||||
{
|
{
|
||||||
moveCursor(QTextCursor::NextRow, QTextCursor::KeepAnchor);
|
moveCursor(QTextCursor::Down, QTextCursor::KeepAnchor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseTextEditor::gotoPreviousLine()
|
void BaseTextEditor::gotoPreviousLine()
|
||||||
{
|
{
|
||||||
moveCursor(QTextCursor::PreviousRow);
|
moveCursor(QTextCursor::Up);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseTextEditor::gotoPreviousLineWithSelection()
|
void BaseTextEditor::gotoPreviousLineWithSelection()
|
||||||
{
|
{
|
||||||
moveCursor(QTextCursor::PreviousRow, QTextCursor::KeepAnchor);
|
moveCursor(QTextCursor::Up, QTextCursor::KeepAnchor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseTextEditor::gotoPreviousCharacter()
|
void BaseTextEditor::gotoPreviousCharacter()
|
||||||
|
Reference in New Issue
Block a user