mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-21 20:30:43 +00:00
apprt/glfw: always say alt is consumed on macos
This commit is contained in:
@@ -606,6 +606,14 @@ pub const Surface = struct {
|
||||
};
|
||||
key_event.utf8 = buf[0..len];
|
||||
|
||||
// On macOS we need to also disable some modifiers because
|
||||
// alt+key consumes the alt.
|
||||
if (comptime builtin.target.isDarwin()) {
|
||||
// For GLFW, we say we always consume alt because
|
||||
// GLFW doesn't have a way to disable the alt key.
|
||||
key_event.consumed_mods.alt = true;
|
||||
}
|
||||
|
||||
_ = core_win.keyCallback(key_event) catch |err| {
|
||||
log.err("error in key callback err={}", .{err});
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user