forked from qt-creator/qt-creator
TextEditor: Add action to clear a selection
Change-Id: I5467a5ef30413418d65a9ac22f1c22d58ee0ee60 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -544,6 +544,8 @@ void TextEditorPlugin::createEditorCommands()
|
||||
.setDefaultKeySequence(QKeySequence(Tr::tr("Ctrl+Shift+Alt+U")))
|
||||
.addToContainer(M_EDIT_ADVANCED, G_EDIT_BLOCKS);
|
||||
TextActionBuilder(this, SELECT_WORD_UNDER_CURSOR).setText(Tr::tr("Select Word Under Cursor"));
|
||||
TextActionBuilder(this, CLEAR_SELECTION)
|
||||
.setText(QCoreApplication::translate("QtC::Terminal", "Clear Selection"));
|
||||
|
||||
TextActionBuilder(this, GOTO_DOCUMENT_START).setText(Tr::tr("Go to Document Start"));
|
||||
TextActionBuilder(this, GOTO_DOCUMENT_END).setText(Tr::tr("Go to Document End"));
|
||||
|
||||
Reference in New Issue
Block a user