WIP: add keyfake command

This commit is contained in:
Oliver Blanthorn 2021-02-15 13:34:45 +01:00
parent ef4dd014cf
commit d514957d9a
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -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