MCPcopy Create free account
hub / github.com/NaitLee/kitty-printer / keyFromCode

Function keyFromCode

static/accessibility.js:47–52  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

45}
46
47function keyFromCode(code) {
48 const map = {
49 9: 'Tab'
50 };
51 return map[code] || String.fromCharCode(code);
52}
53
54function initKeyboardShortcuts() {
55 const layer = document.getElementById('keyboard-shortcuts-layer');

Callers 1

initKeyboardShortcutsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected