diff --git a/include/ghostty.h b/include/ghostty.h index 246fb9ed35..8a36c422c3 100644 --- a/include/ghostty.h +++ b/include/ghostty.h @@ -208,6 +208,7 @@ typedef enum { GHOSTTY_KEY_F23, GHOSTTY_KEY_F24, GHOSTTY_KEY_F25, + GHOSTTY_KEY_CONTEXT_MENU, // keypad GHOSTTY_KEY_KP_0, diff --git a/src/input/key.zig b/src/input/key.zig index 766498d54c..1a9ca557e0 100644 --- a/src/input/key.zig +++ b/src/input/key.zig @@ -357,6 +357,7 @@ pub const Key = enum(c_int) { f23, f24, f25, + context_menu, // keypad kp_0, @@ -567,6 +568,7 @@ pub const Key = enum(c_int) { .backspace => cimgui.c.ImGuiKey_Backspace, .print_screen => cimgui.c.ImGuiKey_PrintScreen, .pause => cimgui.c.ImGuiKey_Pause, + .context_menu => cimgui.c.ImGuiKey_Menu, .f1 => cimgui.c.ImGuiKey_F1, .f2 => cimgui.c.ImGuiKey_F2, diff --git a/src/input/keycodes.zig b/src/input/keycodes.zig index 67ce46daf4..17dcd65037 100644 --- a/src/input/keycodes.zig +++ b/src/input/keycodes.zig @@ -161,6 +161,7 @@ const code_to_key = code_to_key: { .{ "ShiftRight", .right_shift }, .{ "AltRight", .right_alt }, .{ "MetaRight", .right_super }, + .{ "ContextMenu", .context_menu }, }); };