Make ts happier
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
9cda84c675
commit
36cedc58bb
1 changed files with 15 additions and 15 deletions
|
@ -30,11 +30,11 @@ _td("Room List");
|
||||||
_td("Autocomplete");
|
_td("Autocomplete");
|
||||||
|
|
||||||
export enum Categories {
|
export enum Categories {
|
||||||
NAVIGATION="Navigation",
|
NAVIGATION = "Navigation",
|
||||||
CALLS="Calls",
|
CALLS = "Calls",
|
||||||
COMPOSER="Composer",
|
COMPOSER = "Composer",
|
||||||
ROOM_LIST="Room List",
|
ROOM_LIST = "Room List",
|
||||||
AUTOCOMPLETE="Autocomplete",
|
AUTOCOMPLETE = "Autocomplete",
|
||||||
}
|
}
|
||||||
|
|
||||||
// TS: once languageHandler is TS we can probably inline this into the enum
|
// TS: once languageHandler is TS we can probably inline this into the enum
|
||||||
|
@ -45,14 +45,14 @@ _td("Super");
|
||||||
_td("Ctrl");
|
_td("Ctrl");
|
||||||
|
|
||||||
export enum Modifiers {
|
export enum Modifiers {
|
||||||
ALT="Alt",
|
ALT = "Alt",
|
||||||
OPTION="Option", // This gets displayed as an Icon
|
OPTION = "Option", // This gets displayed as an Icon
|
||||||
ALT_GR="Alt Gr",
|
ALT_GR = "Alt Gr",
|
||||||
SHIFT="Shift",
|
SHIFT = "Shift",
|
||||||
SUPER="Super", // should this be "Windows"?
|
SUPER = "Super", // should this be "Windows"?
|
||||||
// Instead of using below, consider CMD_OR_CTRL
|
// Instead of using below, consider CMD_OR_CTRL
|
||||||
COMMAND="Command", // This gets displayed as an Icon
|
COMMAND = "Command", // This gets displayed as an Icon
|
||||||
CONTROL="Ctrl",
|
CONTROL = "Ctrl",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Meta-modifier: isMac ? CMD : CONTROL
|
// Meta-modifier: isMac ? CMD : CONTROL
|
||||||
|
@ -229,12 +229,12 @@ interface IModal {
|
||||||
finished: Promise<any[]>;
|
finished: Promise<any[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const modifierIcon: Record<Modifiers, string> = {
|
const modifierIcon: Record<string, string> = {
|
||||||
[Modifiers.COMMAND]: "⌘",
|
[Modifiers.COMMAND]: "⌘",
|
||||||
[Modifiers.OPTION]: "⌥",
|
[Modifiers.OPTION]: "⌥",
|
||||||
};
|
};
|
||||||
|
|
||||||
const alternateKeyName: Record<string, string> = { // TS: fix this once Key is an enum
|
const alternateKeyName: Record<string, string> = {
|
||||||
[Key.PAGE_UP]: _td("Page Up"),
|
[Key.PAGE_UP]: _td("Page Up"),
|
||||||
[Key.PAGE_DOWN]: _td("Page Down"),
|
[Key.PAGE_DOWN]: _td("Page Down"),
|
||||||
[Key.ESCAPE]: _td("Esc"),
|
[Key.ESCAPE]: _td("Esc"),
|
||||||
|
@ -243,7 +243,7 @@ const alternateKeyName: Record<string, string> = { // TS: fix this once Key is a
|
||||||
[Key.HOME]: _td("Home"),
|
[Key.HOME]: _td("Home"),
|
||||||
[Key.END]: _td("End"),
|
[Key.END]: _td("End"),
|
||||||
};
|
};
|
||||||
const keyIcon: Record<string, string> = { // TS: fix this once Key is an enum
|
const keyIcon: Record<string, string> = {
|
||||||
[Key.ARROW_UP]: "↑",
|
[Key.ARROW_UP]: "↑",
|
||||||
[Key.ARROW_DOWN]: "↓",
|
[Key.ARROW_DOWN]: "↓",
|
||||||
[Key.ARROW_LEFT]: "←",
|
[Key.ARROW_LEFT]: "←",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue