mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: fix delete key name mapping in keybind utility
This commit is contained in:
parent
4f07aecf18
commit
7046c4bb30
1 changed files with 4 additions and 1 deletions
|
|
@ -19,7 +19,10 @@ export namespace Keybind {
|
|||
if (info.ctrl) parts.push("ctrl")
|
||||
if (info.option) parts.push("alt")
|
||||
if (info.shift) parts.push("shift")
|
||||
if (info.name) parts.push(info.name)
|
||||
if (info.name) {
|
||||
if (info.name === "delete") parts.push("del")
|
||||
else parts.push(info.name)
|
||||
}
|
||||
|
||||
let result = parts.join("+")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue