mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 13:14:04 +02:00
fixed hotkey
This commit is contained in:
parent
0ee166a3c0
commit
ad493fb44f
3 changed files with 21 additions and 59 deletions
18
app.vue
18
app.vue
|
@ -265,24 +265,6 @@ onMounted(async () => {
|
|||
if (!await isEnabled()) {
|
||||
await enable()
|
||||
}
|
||||
|
||||
if (await isRegistered("MetaLeft+V")) {
|
||||
await unregister("MetaLeft+V")
|
||||
}
|
||||
|
||||
await register('MetaLeft+V', (event) => {
|
||||
if (event.state === "MetaLeft+V") {
|
||||
if (isVisible.value == true) {
|
||||
app.hide()
|
||||
isVisible.value = false;
|
||||
} else {
|
||||
app.show()
|
||||
isVisible.value = true;
|
||||
selectedItemIndex.value = 0;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
const hideApp = async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue