mirror of
https://github.com/AkiChase/scrcpy-mask
synced 2025-02-22 23:12:16 +08:00
feat(Mask): click mask to hide input box
This commit is contained in:
parent
ed9a95ee71
commit
81825cb871
@ -70,6 +70,12 @@ async function cleanAfterimage() {
|
|||||||
await appWindow.setSize(oSize);
|
await appWindow.setSize(oSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleInputBoxClick(event: MouseEvent) {
|
||||||
|
if (event.target === document.getElementById("input-box")) {
|
||||||
|
showInputBox(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function handleInputKeyUp(event: KeyboardEvent) {
|
function handleInputKeyUp(event: KeyboardEvent) {
|
||||||
if (event.key === "Enter") {
|
if (event.key === "Enter") {
|
||||||
pasteText();
|
pasteText();
|
||||||
@ -167,7 +173,12 @@ async function checkUpdate() {
|
|||||||
</div>
|
</div>
|
||||||
<template v-if="store.keyMappingConfigList.length">
|
<template v-if="store.keyMappingConfigList.length">
|
||||||
<div @contextmenu.prevent class="mask" id="maskElement"></div>
|
<div @contextmenu.prevent class="mask" id="maskElement"></div>
|
||||||
<div v-show="showInputBoxRef" class="input-box">
|
<div
|
||||||
|
v-show="showInputBoxRef"
|
||||||
|
class="input-box"
|
||||||
|
id="input-box"
|
||||||
|
@click="handleInputBoxClick"
|
||||||
|
>
|
||||||
<NInput
|
<NInput
|
||||||
ref="inputInstRef"
|
ref="inputInstRef"
|
||||||
v-model:value="inputBoxVal"
|
v-model:value="inputBoxVal"
|
||||||
|
Loading…
Reference in New Issue
Block a user