@keymanapp/kmc-kmn 18.0.41-alpha → 18.0.46-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/compiler/compiler.d.ts +181 -181
- package/build/src/compiler/compiler.js +493 -496
- package/build/src/compiler/compiler.js.map +1 -1
- package/build/src/compiler/kmn-compiler-messages.d.ts +458 -458
- package/build/src/compiler/kmn-compiler-messages.d.ts.map +1 -1
- package/build/src/compiler/kmn-compiler-messages.js +459 -462
- package/build/src/compiler/kmn-compiler-messages.js.map +1 -1
- package/build/src/compiler/osk.d.ts +31 -31
- package/build/src/compiler/osk.js +84 -87
- package/build/src/compiler/osk.js.map +1 -1
- package/build/src/import/kmcmplib/wasm-host.d.ts +2 -2
- package/build/src/import/kmcmplib/wasm-host.js +3262 -3265
- package/build/src/import/kmcmplib/wasm-host.js.map +1 -1
- package/build/src/import/kmcmplib/wasm-host.wasm +0 -0
- package/build/src/kmw-compiler/compiler-globals.d.ts +19 -19
- package/build/src/kmw-compiler/compiler-globals.js +38 -41
- package/build/src/kmw-compiler/compiler-globals.js.map +1 -1
- package/build/src/kmw-compiler/constants.d.ts +16 -16
- package/build/src/kmw-compiler/constants.js +79 -82
- package/build/src/kmw-compiler/constants.js.map +1 -1
- package/build/src/kmw-compiler/javascript-strings.d.ts +32 -32
- package/build/src/kmw-compiler/javascript-strings.js +852 -855
- package/build/src/kmw-compiler/javascript-strings.js.map +1 -1
- package/build/src/kmw-compiler/keymanweb-key-codes.d.ts +22 -22
- package/build/src/kmw-compiler/keymanweb-key-codes.js +819 -822
- package/build/src/kmw-compiler/keymanweb-key-codes.js.map +1 -1
- package/build/src/kmw-compiler/kmw-compiler-messages.d.ts +30 -30
- package/build/src/kmw-compiler/kmw-compiler-messages.js +40 -43
- package/build/src/kmw-compiler/kmw-compiler-messages.js.map +1 -1
- package/build/src/kmw-compiler/kmw-compiler.d.ts +13 -13
- package/build/src/kmw-compiler/kmw-compiler.js +547 -550
- package/build/src/kmw-compiler/kmw-compiler.js.map +1 -1
- package/build/src/kmw-compiler/util.d.ts +74 -74
- package/build/src/kmw-compiler/util.js +247 -250
- package/build/src/kmw-compiler/util.js.map +1 -1
- package/build/src/kmw-compiler/validate-layout-file.d.ts +8 -8
- package/build/src/kmw-compiler/validate-layout-file.js +276 -279
- package/build/src/kmw-compiler/validate-layout-file.js.map +1 -1
- package/build/src/kmw-compiler/visual-keyboard-compiler.d.ts +2 -2
- package/build/src/kmw-compiler/visual-keyboard-compiler.js +119 -122
- package/build/src/kmw-compiler/visual-keyboard-compiler.js.map +1 -1
- package/build/src/main.d.ts +9 -9
- package/build/src/main.js +10 -13
- package/build/src/main.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export let
|
|
5
|
-
export let
|
|
6
|
-
export let
|
|
7
|
-
export let
|
|
8
|
-
export let
|
|
9
|
-
export let
|
|
10
|
-
export let
|
|
11
|
-
export let
|
|
12
|
-
export let
|
|
13
|
-
export let
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=compiler-globals.js.map
|
|
41
|
-
//# debugId=6f985f86-5c5b-52d8-9c2e-32815b23598b
|
|
1
|
+
import { KMX } from "@keymanapp/common-types";
|
|
2
|
+
export let FTabStop;
|
|
3
|
+
export let nl;
|
|
4
|
+
export let FCompilerWarningsAsErrors = false;
|
|
5
|
+
export let kmxResult;
|
|
6
|
+
export let fk;
|
|
7
|
+
export let FMnemonic;
|
|
8
|
+
export let options;
|
|
9
|
+
export let callbacks;
|
|
10
|
+
export let kmnfile;
|
|
11
|
+
export let FUnreachableKeys;
|
|
12
|
+
export let FCallFunctions;
|
|
13
|
+
export let FFix183_LadderLength;
|
|
14
|
+
export function setupGlobals(_callbacks, _options, _tab, _nl, _kmxResult, _keyboard, _kmnfile) {
|
|
15
|
+
callbacks = _callbacks;
|
|
16
|
+
options = _options;
|
|
17
|
+
FTabStop = _tab;
|
|
18
|
+
nl = _nl;
|
|
19
|
+
kmxResult = _kmxResult;
|
|
20
|
+
fk = _keyboard;
|
|
21
|
+
kmnfile = _kmnfile;
|
|
22
|
+
FUnreachableKeys = [];
|
|
23
|
+
FCallFunctions = [];
|
|
24
|
+
FFix183_LadderLength = 100; // TODO: option
|
|
25
|
+
}
|
|
26
|
+
export function IsKeyboardVersion10OrLater() {
|
|
27
|
+
return fk.fileVersion >= KMX.KMXFile.VERSION_100;
|
|
28
|
+
}
|
|
29
|
+
export function IsKeyboardVersion14OrLater() {
|
|
30
|
+
return fk.fileVersion >= KMX.KMXFile.VERSION_140;
|
|
31
|
+
}
|
|
32
|
+
export function IsKeyboardVersion15OrLater() {
|
|
33
|
+
return fk.fileVersion >= KMX.KMXFile.VERSION_150;
|
|
34
|
+
}
|
|
35
|
+
export function IsKeyboardVersion17OrLater() {
|
|
36
|
+
return fk.fileVersion >= KMX.KMXFile.VERSION_170;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=compiler-globals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler-globals.js","sources":["../../../src/kmw-compiler/compiler-globals.ts"],"
|
|
1
|
+
{"version":3,"file":"compiler-globals.js","sourceRoot":"","sources":["../../../src/kmw-compiler/compiler-globals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAsC,MAAM,yBAAyB,CAAC;AAGlF,MAAM,CAAC,IAAI,QAAgB,CAAC;AA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ACxC,OAAO,EAAE,CAAC,WAAW,IAAI,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC;AACnD,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export declare enum TRequiredKey {
|
|
2
|
-
K_LOPT = "K_LOPT",
|
|
3
|
-
K_BKSP = "K_BKSP",
|
|
4
|
-
K_ENTER = "K_ENTER"
|
|
5
|
-
}
|
|
6
|
-
export declare const CRequiredKeys: TRequiredKey[];
|
|
7
|
-
export declare const CSpecialText10: string, CSpecialText14: string, CSpecialText14ZWNJ: string, CSpecialText14Map: string[][], CSpecialText17: string, CSpecialText17ZWNJ: string, CSpecialText17Map: string[][];
|
|
8
|
-
export declare const CSpecialText: Map<number, string>;
|
|
9
|
-
export declare const CSpecialTextMinVer = 2560;
|
|
10
|
-
export declare const CSpecialTextMaxVer = 4352;
|
|
11
|
-
export declare const KMXCodeNames: string[];
|
|
12
|
-
export declare const USEnglishUnshift: string, USEnglishShift: string, USEnglishValues: string, UnreachableKeyCodes: number[];
|
|
13
|
-
/**
|
|
14
|
-
* The character set that we allow for identifiers for JavaScript
|
|
15
|
-
*/
|
|
16
|
-
export declare const SValidIdentifierCharSet: RegExp;
|
|
1
|
+
export declare enum TRequiredKey {
|
|
2
|
+
K_LOPT = "K_LOPT",
|
|
3
|
+
K_BKSP = "K_BKSP",
|
|
4
|
+
K_ENTER = "K_ENTER"
|
|
5
|
+
}
|
|
6
|
+
export declare const CRequiredKeys: TRequiredKey[];
|
|
7
|
+
export declare const CSpecialText10: string, CSpecialText14: string, CSpecialText14ZWNJ: string, CSpecialText14Map: string[][], CSpecialText17: string, CSpecialText17ZWNJ: string, CSpecialText17Map: string[][];
|
|
8
|
+
export declare const CSpecialText: Map<number, string>;
|
|
9
|
+
export declare const CSpecialTextMinVer = 2560;
|
|
10
|
+
export declare const CSpecialTextMaxVer = 4352;
|
|
11
|
+
export declare const KMXCodeNames: string[];
|
|
12
|
+
export declare const USEnglishUnshift: string, USEnglishShift: string, USEnglishValues: string, UnreachableKeyCodes: number[];
|
|
13
|
+
/**
|
|
14
|
+
* The character set that we allow for identifiers for JavaScript
|
|
15
|
+
*/
|
|
16
|
+
export declare const SValidIdentifierCharSet: RegExp;
|
|
17
17
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,82 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
TRequiredKey["
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
export const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
['*
|
|
18
|
-
['*
|
|
19
|
-
['*
|
|
20
|
-
['*
|
|
21
|
-
['*
|
|
22
|
-
['*
|
|
23
|
-
['*
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
[KMX.KMXFile.
|
|
35
|
-
// [KMX.KMXFile.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[KMX.KMXFile.
|
|
39
|
-
[KMX.KMXFile.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
'',
|
|
48
|
-
'
|
|
49
|
-
'',
|
|
50
|
-
'
|
|
51
|
-
'', '
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
export const SValidIdentifierCharSet = /[A-Za-z0-9_]/;
|
|
81
|
-
//# sourceMappingURL=constants.js.map
|
|
82
|
-
//# debugId=d7939658-3602-5713-b563-cf81d9784fb9
|
|
1
|
+
import { KMX } from "@keymanapp/common-types";
|
|
2
|
+
export var TRequiredKey;
|
|
3
|
+
(function (TRequiredKey) {
|
|
4
|
+
TRequiredKey["K_LOPT"] = "K_LOPT";
|
|
5
|
+
TRequiredKey["K_BKSP"] = "K_BKSP";
|
|
6
|
+
TRequiredKey["K_ENTER"] = "K_ENTER";
|
|
7
|
+
})(TRequiredKey || (TRequiredKey = {}));
|
|
8
|
+
; // I4447
|
|
9
|
+
export const CRequiredKeys = [TRequiredKey.K_LOPT, TRequiredKey.K_BKSP, TRequiredKey.K_ENTER]; // I4447
|
|
10
|
+
// See also builder.js: specialCharacters; web/source/osk/oskKey.ts: specialCharacters
|
|
11
|
+
export const CSpecialText10 = '*Shift*\0*Enter*\0*Tab*\0*BkSp*\0*Menu*\0*Hide*\0*Alt*\0*Ctrl*\0*Caps*\0' +
|
|
12
|
+
'*ABC*\0*abc*\0*123*\0*Symbol*\0*Currency*\0*Shifted*\0*AltGr*\0*TabLeft*\0',
|
|
13
|
+
// these names were added in Keyman 14
|
|
14
|
+
CSpecialText14 = '*LTREnter*\0*LTRBkSp*\0*RTLEnter*\0*RTLBkSp*\0*ShiftLock*\0*ShiftedLock*\0*ZWNJ*\0*ZWNJiOS*\0*ZWNJAndroid*\0', CSpecialText14ZWNJ = '*ZWNJ*\0*ZWNJiOS*\0*ZWNJAndroid*', CSpecialText14Map = [
|
|
15
|
+
['*LTREnter*', '*Enter*'],
|
|
16
|
+
['*LTRBkSp*', '*BkSp*'],
|
|
17
|
+
['*RTLEnter*', '*Enter*'],
|
|
18
|
+
['*RTLBkSp*', '*BkSp*'],
|
|
19
|
+
['*ShiftLock*', '*Shift*'],
|
|
20
|
+
['*ShiftedLock*', '*Shifted*'],
|
|
21
|
+
['*ZWNJ*', '<|>'],
|
|
22
|
+
['*ZWNJiOS*', '<|>'],
|
|
23
|
+
['*ZWNJAndroid*', '<|>'],
|
|
24
|
+
],
|
|
25
|
+
// these names were added in Keyman 17
|
|
26
|
+
CSpecialText17 = '*Sp*\0*NBSp*\0*NarNBSp*\0*EnQ*\0*EmQ*\0*EnSp*\0*EmSp*\0*PunctSp*\0' +
|
|
27
|
+
'*ThSp*\0*HSp*\0*ZWSp*\0*ZWJ*\0*WJ*\0*CGJ*\0*LTRM*\0*RTLM*\0*SH*\0*HTab*\0', CSpecialText17ZWNJ = '*ZWNJGeneric*', CSpecialText17Map = [
|
|
28
|
+
['*ZWNJGeneric*', '<|>']
|
|
29
|
+
];
|
|
30
|
+
// Map for checking minimum versions and Special Text
|
|
31
|
+
export const CSpecialText = new Map([
|
|
32
|
+
[KMX.KMXFile.VERSION_100, CSpecialText10],
|
|
33
|
+
// [KMX.KMXFile.VERSION_110, CSpecialText10], - this file version does not exist
|
|
34
|
+
// [KMX.KMXFile.VERSION_120, CSpecialText10], - this file version does not exist
|
|
35
|
+
// [KMX.KMXFile.VERSION_130, CSpecialText10], - this file version does not exist
|
|
36
|
+
[KMX.KMXFile.VERSION_140, CSpecialText14 + CSpecialText10],
|
|
37
|
+
[KMX.KMXFile.VERSION_150, CSpecialText14 + CSpecialText10],
|
|
38
|
+
[KMX.KMXFile.VERSION_160, CSpecialText14 + CSpecialText10],
|
|
39
|
+
[KMX.KMXFile.VERSION_170, CSpecialText17 + CSpecialText14 + CSpecialText10]
|
|
40
|
+
]);
|
|
41
|
+
export const CSpecialTextMinVer = KMX.KMXFile.VERSION_100;
|
|
42
|
+
export const CSpecialTextMaxVer = KMX.KMXFile.VERSION_170;
|
|
43
|
+
// These correspond to TSS_ values in kmx.ts
|
|
44
|
+
export const KMXCodeNames = [
|
|
45
|
+
'',
|
|
46
|
+
'any', 'index', 'context', 'nul', 'use', 'return', 'beep', 'deadkey',
|
|
47
|
+
'',
|
|
48
|
+
'extended', '', 'switch', 'key', 'clearcontext', 'call',
|
|
49
|
+
'', 'contextex', 'notany',
|
|
50
|
+
'set', 'if', 'save', 'reset', // I3429
|
|
51
|
+
'if(&system)', 'set(&system)'
|
|
52
|
+
]; // I3430 // I3437
|
|
53
|
+
export const USEnglishUnshift = ' `' + '1234567890' + '-' + '=' + 'qwertyuiop' + '[' + ']' + '\\' + 'asdfghjkl' + ';' + '\'' + 'zxcvbnm' + ',' + '.' + '/', USEnglishShift = '\u00FF' + '~' + '!@#$%^&*()' + '_' + '+' + 'QWERTYUIOP' + '{' + '}' + '|' + 'ASDFGHJKL' + ':' + '"' + 'ZXCVBNM' + '<' + '>' + '?', USEnglishValues = '\u0020' + '\u00c0' + '1234567890' + '\u00bd' + '\u00bb' + 'QWERTYUIOP' + '\u00db' + '\u00dd' + '\u00dc' + 'ASDFGHJKL' + '\u00ba' + '\u00de' + 'ZXCVBNM' + '\u00bc' + '\u00be' + '\u00bf', UnreachableKeyCodes = [
|
|
54
|
+
0x00, // &H0
|
|
55
|
+
0x01, //VK_LBUTTON, // &H1
|
|
56
|
+
0x02, //VK_RBUTTON, // &H2
|
|
57
|
+
0x03, //VK_CANCEL, // &H3
|
|
58
|
+
0x04, //VK_MBUTTON, // &H4
|
|
59
|
+
0x05, // &H5
|
|
60
|
+
0x06, // &H6
|
|
61
|
+
0x07, // &H7
|
|
62
|
+
0x0A, // &HA
|
|
63
|
+
0x0B, // &HB
|
|
64
|
+
0x0E, // &HE
|
|
65
|
+
0x0F, // &HF
|
|
66
|
+
0x10, //VK_SHIFT, // &H10
|
|
67
|
+
0x11, //VK_CONTROL, // &H11
|
|
68
|
+
0x12, //VK_MENU, // &H12
|
|
69
|
+
0x13, //VK_PAUSE, // &H13
|
|
70
|
+
0x14, //VK_CAPITAL, // &H14
|
|
71
|
+
0x1B, //VK_ESCAPE, // &H1B
|
|
72
|
+
0x90, //VK_NUMLOCK, // &H90
|
|
73
|
+
0x91 //VK_SCROLL // &H91
|
|
74
|
+
];
|
|
75
|
+
/**
|
|
76
|
+
* The character set that we allow for identifiers for JavaScript
|
|
77
|
+
*/
|
|
78
|
+
export const SValidIdentifierCharSet = /[A-Za-z0-9_]/;
|
|
79
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../src/kmw-compiler/constants.ts"],"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/kmw-compiler/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAE9C,MAAM,CAAN,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,iCAAe,CAAA;IAAE,iCAAe,CAAA;IAAE,mCAAiB,CAAA;AACrD,CAAC,EAFW,YAAY,KAAZ,YAAY,QAEvB;AAAA,CAAC,CAAC,QAAQ;AAEX,MAAM,CAAC,MACL,aAAa,GAAmB,CAAC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;AAE5G,sFAAsF;AACtF,MAAM,CAAC,MACL,cAAc,GAAW,0EAA0E;IACjG,4EAA4E;AAC9E,sCAAsC;AACtC,cAAc,GAAW,8GAA8G,EACvI,kBAAkB,GAAW,kCAAkC,EAC/D,iBAAiB,GAAe;IAC9B,CAAC,YAAY,EAAE,SAAS,CAAC;IACzB,CAAC,WAAW,EAAE,QAAQ,CAAC;IACvB,CAAC,YAAY,EAAE,SAAS,CAAC;IACzB,CAAC,WAAW,EAAE,QAAQ,CAAC;IACvB,CAAC,aAAa,EAAE,SAAS,CAAC;IAC1B,CAAC,eAAe,EAAE,WAAW,CAAC;IAC9B,CAAC,QAAQ,EAAE,KAAK,CAAC;IACjB,CAAC,WAAW,EAAE,KAAK,CAAC;IACpB,CAAC,eAAe,EAAE,KAAK,CAAC;CACzB;AACD,sCAAsC;AACtC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-
import { KMX } from "@keymanapp/common-types";
|
|
2
|
-
export declare function JavaScript_Name(i: number, pwszName: string, KeepNameForPersistentStorage?: boolean): string;
|
|
3
|
-
export declare function JavaScript_Store(fk: KMX.KEYBOARD, line: number, pwsz: string): string;
|
|
4
|
-
export declare function JavaScript_String(ch: number): string;
|
|
5
|
-
export declare function JavaScript_Rules(keyboard: KMX.KEYBOARD, fMnemonic: boolean, fgp: KMX.GROUP): string;
|
|
6
|
-
export declare function JavaScript_Shift(fkp: KMX.KEY, FMnemonic: boolean): number;
|
|
7
|
-
/**
|
|
8
|
-
* Returns a Javascript representation of a key modifier state, either as a constant (debug mode)
|
|
9
|
-
* or as an integer.
|
|
10
|
-
*
|
|
11
|
-
* @param fkp Pointer to key record
|
|
12
|
-
* @param FMnemonic True if the keyboard is a mnemonic layout
|
|
13
|
-
*
|
|
14
|
-
* @return string representation of the key modifier state, e.g.
|
|
15
|
-
* 'modCodes.SHIFT | modCodes.CAPS | modCodes.VIRTUAL_KEY /* 0x4110 * /' or
|
|
16
|
-
* '16656'
|
|
17
|
-
*/
|
|
18
|
-
export declare function JavaScript_ShiftAsString(fkp: KMX.KEY, FMnemonic: boolean): string;
|
|
19
|
-
export declare function JavaScript_Key(fkp: KMX.KEY, FMnemonic: boolean): number;
|
|
20
|
-
/**
|
|
21
|
-
* Returns a Javascript representation of a key value, either as a constant (debug mode)
|
|
22
|
-
* or as an integer.
|
|
23
|
-
*
|
|
24
|
-
* @param fkp Pointer to key record
|
|
25
|
-
* @param FMnemonic True if the keyboard is a mnemonic layout
|
|
26
|
-
*
|
|
27
|
-
* @return string representation of the key value, e.g. 'keyCodes.K_A /* 0x41 * /' or '65'
|
|
28
|
-
*/
|
|
29
|
-
export declare function JavaScript_KeyAsString(fkp: KMX.KEY, FMnemonic: boolean): string;
|
|
30
|
-
export declare function JavaScript_ContextMatch(fk: KMX.KEYBOARD, fkp: KMX.KEY, context: string): string;
|
|
31
|
-
export declare function JavaScript_OutputString(fk: KMX.KEYBOARD, FTabStops: string, fkp: KMX.KEY, pwszOutput: string, fgp: KMX.GROUP): string;
|
|
32
|
-
export declare function zeroPadHex(n: number, len: number): string;
|
|
1
|
+
import { KMX } from "@keymanapp/common-types";
|
|
2
|
+
export declare function JavaScript_Name(i: number, pwszName: string, KeepNameForPersistentStorage?: boolean): string;
|
|
3
|
+
export declare function JavaScript_Store(fk: KMX.KEYBOARD, line: number, pwsz: string): string;
|
|
4
|
+
export declare function JavaScript_String(ch: number): string;
|
|
5
|
+
export declare function JavaScript_Rules(keyboard: KMX.KEYBOARD, fMnemonic: boolean, fgp: KMX.GROUP): string;
|
|
6
|
+
export declare function JavaScript_Shift(fkp: KMX.KEY, FMnemonic: boolean): number;
|
|
7
|
+
/**
|
|
8
|
+
* Returns a Javascript representation of a key modifier state, either as a constant (debug mode)
|
|
9
|
+
* or as an integer.
|
|
10
|
+
*
|
|
11
|
+
* @param fkp Pointer to key record
|
|
12
|
+
* @param FMnemonic True if the keyboard is a mnemonic layout
|
|
13
|
+
*
|
|
14
|
+
* @return string representation of the key modifier state, e.g.
|
|
15
|
+
* 'modCodes.SHIFT | modCodes.CAPS | modCodes.VIRTUAL_KEY /* 0x4110 * /' or
|
|
16
|
+
* '16656'
|
|
17
|
+
*/
|
|
18
|
+
export declare function JavaScript_ShiftAsString(fkp: KMX.KEY, FMnemonic: boolean): string;
|
|
19
|
+
export declare function JavaScript_Key(fkp: KMX.KEY, FMnemonic: boolean): number;
|
|
20
|
+
/**
|
|
21
|
+
* Returns a Javascript representation of a key value, either as a constant (debug mode)
|
|
22
|
+
* or as an integer.
|
|
23
|
+
*
|
|
24
|
+
* @param fkp Pointer to key record
|
|
25
|
+
* @param FMnemonic True if the keyboard is a mnemonic layout
|
|
26
|
+
*
|
|
27
|
+
* @return string representation of the key value, e.g. 'keyCodes.K_A /* 0x41 * /' or '65'
|
|
28
|
+
*/
|
|
29
|
+
export declare function JavaScript_KeyAsString(fkp: KMX.KEY, FMnemonic: boolean): string;
|
|
30
|
+
export declare function JavaScript_ContextMatch(fk: KMX.KEYBOARD, fkp: KMX.KEY, context: string): string;
|
|
31
|
+
export declare function JavaScript_OutputString(fk: KMX.KEYBOARD, FTabStops: string, fkp: KMX.KEY, pwszOutput: string, fgp: KMX.GROUP): string;
|
|
32
|
+
export declare function zeroPadHex(n: number, len: number): string;
|
|
33
33
|
//# sourceMappingURL=javascript-strings.d.ts.map
|