MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getInkModifiers

Function getInkModifiers

source code/keybindings/match.ts:17–24  ·  view source on GitHub ↗

* Extract modifiers from an Ink Key object. * This function ensures we're explicitly extracting the modifiers we care about.

(key: Key)

Source from the content-addressed store, hash-verified

15 * This function ensures we're explicitly extracting the modifiers we care about.
16 */
17function getInkModifiers(key: Key): InkModifiers {
18 return {
19 ctrl: key.ctrl,
20 shift: key.shift,
21 meta: key.meta,
22 super: key.super,
23 }
24}
25
26/**
27 * Extract the normalized key name from Ink's Key + input.

Callers 1

matchesKeystrokeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected