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