apprt/gtk: handle non-unicode keyvals

This commit is contained in:
Vlad Pănăzan
2023-10-28 14:59:54 +02:00
parent 641fb535b7
commit 6b7dd1479d

View File

@ -14,6 +14,7 @@ const CoreSurface = @import("../../Surface.zig");
const App = @import("App.zig");
const Window = @import("Window.zig");
const inspector = @import("inspector.zig");
const gtk_key = @import("key.zig");
const c = @import("c.zig");
const log = std.log.scoped(.gtk);
@ -905,6 +906,10 @@ fn keyEvent(
}
}
if (gtk_key.keyFromKeyval(keyval)) |key| {
break :key key;
}
break :key physical_key;
} else .invalid;