UNPKG

@blockly/keyboard-navigation

Version:
24 lines 827 B
/** * Find the primary shortcut for this platform and return it as single string * in a short user facing format. * * @param action The action name, e.g. "cut". * @returns The formatted shortcut. */ export declare function getShortActionShortcut(action: string): string; /** * Find the relevant shortcuts for the given action for the current platform. * Keys are returned in a long user facing format. * * @param action The action name, e.g. "cut". * @returns The formatted shortcuts as individual keys. */ export declare function getLongActionShortcutsAsKeys(action: string): string[][]; /** * Convert the first character to uppercase. * * @param str String. * @returns The string in title case. */ export declare function upperCaseFirst(str: string): string; //# sourceMappingURL=shortcut_formatting.d.ts.map