MCPcopy Create free account
hub / github.com/arctic-cli/interface / fromParsedKey

Function fromParsedKey

packages/arctic/src/util/keybind.ts:24–33  ·  view source on GitHub ↗
(key: ParsedKey, leader = false)

Source from the content-addressed store, hash-verified

22 * This helper ensures all required fields are present and avoids manual object creation.
23 */
24 export function fromParsedKey(key: ParsedKey, leader = false): Info {
25 return {
26 name: key.name?.toLowerCase(),
27 ctrl: key.ctrl,
28 meta: key.meta,
29 shift: key.shift,
30 super: key.super ?? false,
31 leader,
32 }
33 }
34
35 export function toString(info: Info): string {
36 const parts: string[] = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected