mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-18 01:26:57 +08:00
✨ 增加 blur API
This commit is contained in:
parent
8ca01d900d
commit
c69be6c24f
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rubick",
|
||||
"version": "2.0.1-beta.9",
|
||||
"version": "2.0.1-beta.10",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
|
@ -59,6 +59,9 @@ window.rubick = {
|
||||
setSubInputValue(text) {
|
||||
ipcSendSync("setSubInputValue", { text });
|
||||
},
|
||||
subInputBlur() {
|
||||
ipcSendSync("subInputBlur");
|
||||
},
|
||||
getPath(name) {
|
||||
return ipcSendSync("getPath", { name });
|
||||
},
|
||||
|
@ -70,6 +70,9 @@ const API: any = {
|
||||
})})`
|
||||
);
|
||||
},
|
||||
subInputBlur() {
|
||||
runnerInstance.getView().webContents.focus()
|
||||
},
|
||||
sendSubInputChangeEvent({ data }) {
|
||||
runnerInstance.executeHooks("SubInputChange", data);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user