ref(ctlseqs): use control sequence file; rename key names
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 46s

This commit is contained in:
2025-02-17 23:08:47 +01:00
parent a9f48bfb6a
commit c2080ab40f
4 changed files with 87 additions and 75 deletions

View File

@@ -182,7 +182,7 @@ pub fn App(comptime E: type) type {
'B' => .{ .cp = key.Down },
'C' => .{ .cp = key.Right },
'D' => .{ .cp = key.Left },
'E' => .{ .cp = key.Kp_Begin },
'E' => .{ .cp = key.KpBegin },
'F' => .{ .cp = key.End },
'H' => .{ .cp = key.Home },
'P' => .{ .cp = key.F1 },
@@ -216,7 +216,7 @@ pub fn App(comptime E: type) type {
'B' => key.Down,
'C' => key.Right,
'D' => key.Left,
'E' => key.Kp_Begin,
'E' => key.KpBegin,
'F' => key.End,
'H' => key.Home,
'P' => key.F1,
@@ -241,8 +241,8 @@ pub fn App(comptime E: type) type {
.cp = switch (number) {
2 => key.Insert,
3 => key.Delete,
5 => key.Page_Up,
6 => key.Page_Down,
5 => key.PageUp,
6 => key.PageDown,
7 => key.Home,
8 => key.End,
11 => key.F1,
@@ -259,7 +259,7 @@ pub fn App(comptime E: type) type {
24 => key.F12,
// 200 => return .{ .event = .paste_start, .n = sequence.len },
// 201 => return .{ .event = .paste_end, .n = sequence.len },
57427 => key.Kp_Begin,
57427 => key.KpBegin,
else => unreachable,
},
};