diff options
Diffstat (limited to 'keybinds/Binds.js')
| -rw-r--r-- | keybinds/Binds.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/keybinds/Binds.js b/keybinds/Binds.js index 604a53d..eb337c1 100644 --- a/keybinds/Binds.js +++ b/keybinds/Binds.js @@ -42,15 +42,8 @@ const NAMES = Object.assign(Object.create(null), { "XF86Search": "Fn+F11", }); -// Hyprland 0.56.2 reports a Lua `code:N` bind with key "" and keycode 0, so -// such a bind is named here by its description. -// ponytail: one entry per keycode bind; a new `code:` bind needs a line here. -const UNNAMED = Object.assign(Object.create(null), { - "Desktop: Companion": "\\", // code:49, left of 1 -}); - function keys(bind) { - const k = bind.key || UNNAMED[bind.description] || "?"; + const k = bind.key || "?"; // a `code:N` bind reports key "" (see AGENTS.md) return mods(bind.modmask).concat([NAMES[k] ?? k]).join(" + "); } |
