feat: add keypad key mappings

This commit is contained in:
Peter Steinberger
2026-01-17 06:22:05 +00:00
parent b31d8d3b10
commit bd32cc40e6
2 changed files with 19 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ test("encodeKeySequence maps common keys and modifiers", () => {
const shiftTab = encodeKeySequence({ keys: ["S-Tab"] });
expect(shiftTab.data).toBe("\x1b[Z");
const kpEnter = encodeKeySequence({ keys: ["KPEnter"] });
expect(kpEnter.data).toBe("\x1bOM");
});
test("encodeKeySequence supports hex + literal with warnings", () => {