From c2adf2285825faa723bccb9cca29658ac210ea37 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 28 Oct 2023 08:42:35 -0700 Subject: [PATCH] apprt/gtk: comment on what is going on with keyval mapping --- src/apprt/gtk/Surface.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apprt/gtk/Surface.zig b/src/apprt/gtk/Surface.zig index a4cf91860..60296d7e8 100644 --- a/src/apprt/gtk/Surface.zig +++ b/src/apprt/gtk/Surface.zig @@ -906,6 +906,8 @@ fn keyEvent( } } + // Before using the physical key, try to convert the keyval + // directly to a key. This allows the use of key remapping. if (gtk_key.keyFromKeyval(keyval)) |key| { break :key key; }