MCPcopy Create free account
hub / github.com/bytebase/bytebase / keyboardShortcutStr

Function keyboardShortcutStr

frontend/src/utils/util.ts:324–333  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

322};
323
324export const keyboardShortcutStr = (str: string) => {
325 const parts = str.split("+");
326 return parts
327 .map((part) => {
328 const mod = part as ModifierKey;
329 if (MODIFIERS.includes(mod)) return modifierKeyText(mod);
330 return part;
331 })
332 .join("+");
333};
334
335export const isNullOrUndefined = (value: unknown) => {
336 return value === null || value === undefined;

Callers 2

EditorActionFunction · 0.90
PromptInputFunction · 0.90

Calls 1

modifierKeyTextFunction · 0.85

Tested by

no test coverage detected