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
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 46s
This commit is contained in:
10
src/app.zig
10
src/app.zig
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user