mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
apprt/glfw: send mods to charcallback
This commit is contained in:
@ -285,6 +285,7 @@ pub const Surface = struct {
|
|||||||
/// This is set to true when keyCallback consumes the input, suppressing
|
/// This is set to true when keyCallback consumes the input, suppressing
|
||||||
/// the charCallback from being fired.
|
/// the charCallback from being fired.
|
||||||
key_consumed: bool = false,
|
key_consumed: bool = false,
|
||||||
|
key_mods: input.Mods = .{},
|
||||||
|
|
||||||
pub const Options = struct {};
|
pub const Options = struct {};
|
||||||
|
|
||||||
@ -597,8 +598,7 @@ pub const Surface = struct {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: mods
|
core_win.charCallback(codepoint, core_win.rt_surface.key_mods) catch |err| {
|
||||||
core_win.charCallback(codepoint, .{}) catch |err| {
|
|
||||||
log.err("error in char callback err={}", .{err});
|
log.err("error in char callback err={}", .{err});
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user