forked from qt-creator/qt-creator
Added Insert Line Above/Below actions to BaseTextEditor
The actions perform exactly like their counterparts in Eclipse: a new, indented line is inserted above or below the current line and the text cursor is moved to the start of the new line. The line where the cursor was before the action was triggered remains unchanged. The shortcuts are also like in Eclipse: "Ctrl+Shift+Return" inserts a line above the current, "Shift+Return" inserts a line below the current. Merge-request: 140 Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
committed by
Thorbjørn Lindeijer
parent
b61e656493
commit
32ab9878fe
@@ -61,6 +61,8 @@ const char * const MOVE_LINE_DOWN = "TextEditor.MoveLineDown";
|
||||
const char * const COPY_LINE_UP = "TextEditor.CopyLineUp";
|
||||
const char * const COPY_LINE_DOWN = "TextEditor.CopyLineDown";
|
||||
const char * const JOIN_LINES = "TextEditor.JoinLines";
|
||||
const char * const INSERT_LINE_ABOVE = "TextEditor.InsertLineAboveCurrentLine";
|
||||
const char * const INSERT_LINE_BELOW = "TextEditor.InsertLineBelowCurrentLine";
|
||||
const char * const CUT_LINE = "TextEditor.CutLine";
|
||||
const char * const DELETE_LINE = "TextEditor.DeleteLine";
|
||||
const char * const DELETE_WORD = "TextEditor.DeleteWord";
|
||||
|
||||
Reference in New Issue
Block a user