// The names keys render with, by canonical name, and the aliases that point to them: a subset of pymdownx.keys' // keymap_db (MIT, Isaac Muse), without its numpad, media, browser, mouse, and left and right modifier keys. export const names = { ...Object.fromEntries( "0123456789abcdefghijklmnopqrstuvwxyz".split("").map((char) => [char, char.toUpperCase()]), ), ...Object.fromEntries( Array.from({ length: 24 }, (_, index) => [`f${index + 1}`, `F${index + 1}`]), ), space: "Space", backslash: "\\", bar: "|", "brace-left": "{", "brace-right": "}", "bracket-left": "[", "bracket-right": "]", colon: ":", comma: ",", "double-quote": '"', equal: "=", exclam: "!", grave: "`", greater: ">", less: "<", minus: "-", period: ".", plus: "+", question: "?", semicolon: ";", "single-quote": "'", slash: "/", tilde: "~", underscore: "_", "arrow-up": "Up", "arrow-down": "Down", "arrow-left": "Left", "arrow-right": "Right", "page-up": "Page Up", "page-down": "Page Down", home: "Home", end: "End", backspace: "Backspace", delete: "Del", insert: "Ins", tab: "Tab", "caps-lock": "Caps Lock", enter: "Enter", escape: "Esc", "print-screen": "Print Screen", alt: "Alt", "alt-graph": "AltGr", command: "Cmd", control: "Ctrl", function: "Fn", meta: "Meta", option: "Option", shift: "Shift", super: "Super", windows: "Win", "context-menu": "Menu", }; export const aliases = new Map( Object.entries({ altgr: "alt-graph", apps: "context-menu", back: "backspace", bksp: "backspace", "close-brace": "brace-right", "close-bracket": "bracket-right", cmd: "command", ctrl: "control", dblquote: "double-quote", del: "delete", down: "arrow-down", esc: "escape", return: "enter", exclamation: "exclam", fn: "function", "grave-accent": "grave", "greater-than": "greater", gt: "greater", hyphen: "minus", ins: "insert", left: "arrow-left", "less-than": "less", lt: "less", menu: "context-menu", next: "page-down", "open-brace": "brace-left", "open-bracket": "bracket-left", opt: "option", "page-dn": "page-down", "pg-dn": "page-down", "pg-up": "page-up", pipe: "bar", prior: "page-up", prtsc: "print-screen", "question-mark": "question", right: "arrow-right", spc: "space", tabulator: "tab", up: "arrow-up", win: "windows", }), );