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