mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
apprt/gtk: fix key callback
This commit is contained in:
@ -935,7 +935,7 @@ pub const Surface = struct {
|
||||
const key = translateKey(keyval);
|
||||
const mods = translateMods(state);
|
||||
log.debug("key-press code={} key={} mods={}", .{ keycode, key, mods });
|
||||
self.core_surface.keyCallback(.press, key, mods) catch |err| {
|
||||
self.core_surface.keyCallback(.press, key, key, mods) catch |err| {
|
||||
log.err("error in key callback err={}", .{err});
|
||||
return 0;
|
||||
};
|
||||
@ -965,7 +965,7 @@ pub const Surface = struct {
|
||||
const key = translateKey(keyval);
|
||||
const mods = translateMods(state);
|
||||
const self = userdataSelf(ud.?);
|
||||
self.core_surface.keyCallback(.release, key, mods) catch |err| {
|
||||
self.core_surface.keyCallback(.release, key, key, mods) catch |err| {
|
||||
log.err("error in key callback err={}", .{err});
|
||||
return 0;
|
||||
};
|
||||
|
Reference in New Issue
Block a user