Skip to content

shift+tab not working on macOS m1 #266

@kindy

Description

@kindy

when I use zf, I found out that shift+tab is not working, so I report an issue there (natecraddock/zf#83).

I tried libvaxis's example/cli, seems shift+tab also not works. (git commit: cfa6311 )

after apply this patch, it works for me:

diff --git a/src/Parser.zig b/src/Parser.zig
index a310c60..1f0ab6a 100644
--- a/src/Parser.zig
+++ b/src/Parser.zig
@@ -403,6 +403,19 @@ inline fn parseCsi(input: []const u8, text_buf: []u8) Result {
                 .n = sequence.len,
             };
         },
+        'Z' => {
+            return .{
+                .event = .{
+                    .key_press = .{
+                        .codepoint = Key.tab,
+                        .mods = .{
+                            .shift = true,
+                        },
+                    },
+                },
+                .n = sequence.len,
+            };
+        },
         '~' => {
             // Legacy keys
             // CSI number ~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions