Test Push

This commit is contained in:
2021-11-10 19:42:34 +10:00
parent cbec4a5c5c
commit 9047395d68
2 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
type KeyboardRowName = `row${number}${"" | "_"}${string}`;
type KeyboardRow = Partial<Record<KeyboardRowName, string[]>>
interface VirtualKeyboard {
[layoutName: string]: Partial<Record<KeyboardRowName, string[]>>;
[layoutName: string]: KeyboardRow;
}
let showVirtualNumpad = (heading: string, maxlength = 4, isPassword: boolean, allowDecimals = true, allowClose = true, submitFunction: Function) => {
@@ -222,7 +223,9 @@ let showVirtualNumpad = (heading: string, maxlength = 4, isPassword: boolean, al
and translators making their own language packs
*/
index = index + 1;
let currentRow = layoutToLoad[`row${index}${modifier}`]
// @ts-ignore
let currentRow : string[] = layoutToLoad[`row${index}${modifier}`]
$(row).children('a').each((keyIndex, button) => {
let key = $(button);