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>
Showing
- src/plugins/texteditor/basetexteditor.cpp 23 additions, 0 deletionssrc/plugins/texteditor/basetexteditor.cpp
- src/plugins/texteditor/basetexteditor.h 3 additions, 0 deletionssrc/plugins/texteditor/basetexteditor.h
- src/plugins/texteditor/texteditoractionhandler.cpp 12 additions, 0 deletionssrc/plugins/texteditor/texteditoractionhandler.cpp
- src/plugins/texteditor/texteditoractionhandler.h 4 additions, 0 deletionssrc/plugins/texteditor/texteditoractionhandler.h
- src/plugins/texteditor/texteditorconstants.h 2 additions, 0 deletionssrc/plugins/texteditor/texteditorconstants.h
Loading
Please register or sign in to comment