Adds two actions to indent and unindent a selection.
Add actions to the basetexteditor to indent and unindent a selection. These actions
are equivalent to Key_Tab and Key_BackTab respectively. The advantage of having
actions here is the user can override them and assign any key binding they want.
Thus, I could assign Ctrl+I and Shift+Ctrl+I to them and have the same behavior
as Kate.
Change-Id: I0a305a7b45018072a78f2880ea15650ea92095a1
Reviewed-by:
Leandro Melo <leandro.melo@nokia.com>
Showing
- src/plugins/texteditor/basetexteditor.cpp 10 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 14 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