Add an action to select the word under the cursor (#3633)
This commit is contained in:
@@ -456,6 +456,13 @@ void SplitInput::addShortcuts()
|
||||
this->ui_.textEdit->selectAll();
|
||||
return "";
|
||||
}},
|
||||
{"selectWord",
|
||||
[this](std::vector<QString>) -> QString {
|
||||
auto cursor = this->ui_.textEdit->textCursor();
|
||||
cursor.select(QTextCursor::WordUnderCursor);
|
||||
this->ui_.textEdit->setTextCursor(cursor);
|
||||
return "";
|
||||
}},
|
||||
};
|
||||
|
||||
this->shortcuts_ = getApp()->hotkeys->shortcutsForCategory(
|
||||
|
||||
Reference in New Issue
Block a user