feat:use selection text when searching
This commit is contained in:
+7
-1
@@ -1071,8 +1071,14 @@ window.onload = function () {
|
||||
key: KeyMap.F,
|
||||
ctrl: true,
|
||||
isGlobal: true,
|
||||
callback: () => {
|
||||
callback: (command: Command) => {
|
||||
const text = command.getRangeText()
|
||||
searchDom.click()
|
||||
if (text) {
|
||||
searchInputDom.value = text
|
||||
instance.command.executeSearch(text)
|
||||
setSearchResult()
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user