upgrade to opentui 0.1.32, activates kitty keyboard

This commit is contained in:
Sebastian Herrlinger
2025-11-02 01:45:38 +01:00
parent 1e15fc273a
commit 92a1943771
5 changed files with 33 additions and 20 deletions

View File

@@ -28,8 +28,14 @@ describe("Keybind.toString", () => {
})
test("should convert shift modifier to string", () => {
const info: Keybind.Info = { ctrl: false, meta: false, shift: true, leader: false, name: "enter" }
expect(Keybind.toString(info)).toBe("shift+enter")
const info: Keybind.Info = {
ctrl: false,
meta: false,
shift: true,
leader: false,
name: "return",
}
expect(Keybind.toString(info)).toBe("shift+return")
})
test("should convert function key to string", () => {
@@ -38,7 +44,13 @@ describe("Keybind.toString", () => {
})
test("should convert special key to string", () => {
const info: Keybind.Info = { ctrl: false, meta: false, shift: false, leader: false, name: "pgup" }
const info: Keybind.Info = {
ctrl: false,
meta: false,
shift: false,
leader: false,
name: "pgup",
}
expect(Keybind.toString(info)).toBe("pgup")
})
@@ -220,15 +232,15 @@ describe("Keybind.parse", () => {
])
})
test("should parse shift+enter combination", () => {
const result = Keybind.parse("shift+enter")
test("should parse shift+return combination", () => {
const result = Keybind.parse("shift+return")
expect(result).toEqual([
{
ctrl: false,
meta: false,
shift: true,
leader: false,
name: "enter",
name: "return",
},
])
})