Skip to content

Commit 7046c4b

Browse files
committed
tui: fix delete key name mapping in keybind utility
1 parent 4f07aec commit 7046c4b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/opencode/src/util/keybind.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export namespace Keybind {
1919
if (info.ctrl) parts.push("ctrl")
2020
if (info.option) parts.push("alt")
2121
if (info.shift) parts.push("shift")
22-
if (info.name) parts.push(info.name)
22+
if (info.name) {
23+
if (info.name === "delete") parts.push("del")
24+
else parts.push(info.name)
25+
}
2326

2427
let result = parts.join("+")
2528

0 commit comments

Comments
 (0)