Merge 4a8ff6129583465c8e8d3bf412682a3492aed9ab into 17ba0252e831457418da1b5c26ce16bdf83f0e5c

This commit is contained in:
Jeffrey C. Ollie
2025-04-08 15:40:33 +04:00
committed by GitHub
3 changed files with 4 additions and 0 deletions

View File

@ -208,6 +208,7 @@ typedef enum {
GHOSTTY_KEY_F23, GHOSTTY_KEY_F23,
GHOSTTY_KEY_F24, GHOSTTY_KEY_F24,
GHOSTTY_KEY_F25, GHOSTTY_KEY_F25,
GHOSTTY_KEY_CONTEXT_MENU,
// keypad // keypad
GHOSTTY_KEY_KP_0, GHOSTTY_KEY_KP_0,

View File

@ -357,6 +357,7 @@ pub const Key = enum(c_int) {
f23, f23,
f24, f24,
f25, f25,
context_menu,
// keypad // keypad
kp_0, kp_0,
@ -567,6 +568,7 @@ pub const Key = enum(c_int) {
.backspace => cimgui.c.ImGuiKey_Backspace, .backspace => cimgui.c.ImGuiKey_Backspace,
.print_screen => cimgui.c.ImGuiKey_PrintScreen, .print_screen => cimgui.c.ImGuiKey_PrintScreen,
.pause => cimgui.c.ImGuiKey_Pause, .pause => cimgui.c.ImGuiKey_Pause,
.context_menu => cimgui.c.ImGuiKey_Menu,
.f1 => cimgui.c.ImGuiKey_F1, .f1 => cimgui.c.ImGuiKey_F1,
.f2 => cimgui.c.ImGuiKey_F2, .f2 => cimgui.c.ImGuiKey_F2,

View File

@ -161,6 +161,7 @@ const code_to_key = code_to_key: {
.{ "ShiftRight", .right_shift }, .{ "ShiftRight", .right_shift },
.{ "AltRight", .right_alt }, .{ "AltRight", .right_alt },
.{ "MetaRight", .right_super }, .{ "MetaRight", .right_super },
.{ "ContextMenu", .context_menu },
}); });
}; };