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

3
.gitignore vendored
View File

@@ -6,5 +6,4 @@
/tables/* /tables/*
/Properties/ /Properties/
/.idea/ /.idea/
/wwwroot/scripts/js/*.js /wwwroot/scripts/js/*
/wwwroot/scripts/js/*.map

View File

@@ -1,6 +1,7 @@
type KeyboardRowName = `row${number}${"" | "_"}${string}`; type KeyboardRowName = `row${number}${"" | "_"}${string}`;
type KeyboardRow = Partial<Record<KeyboardRowName, string[]>>
interface VirtualKeyboard { 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) => { 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 and translators making their own language packs
*/ */
index = index + 1; index = index + 1;
let currentRow = layoutToLoad[`row${index}${modifier}`]
// @ts-ignore
let currentRow : string[] = layoutToLoad[`row${index}${modifier}`]
$(row).children('a').each((keyIndex, button) => { $(row).children('a').each((keyIndex, button) => {
let key = $(button); let key = $(button);