mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
WIP: add keyfake command
This commit is contained in:
parent
ef4dd014cf
commit
d514957d9a
1 changed files with 9 additions and 0 deletions
|
@ -5098,6 +5098,15 @@ export async function keyfeed(mapstr: string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//#content
|
||||||
|
export async function keyfake(mapstr: string) {
|
||||||
|
const keyseq = mapstrToKeyseq(mapstr)
|
||||||
|
for (const k of keyseq) {
|
||||||
|
window.dispatchEvent(new KeyboardEvent("keydown", k))
|
||||||
|
await sleep(10)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** Open a welcome page on first install.
|
/** Open a welcome page on first install.
|
||||||
*
|
*
|
||||||
* @hidden
|
* @hidden
|
||||||
|
|
Loading…
Add table
Reference in a new issue