mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-28 18:11:39 +00:00
Revert "macos: don't remove ctrl modifier for text input"
This reverts commit 3104b21758.
This commit is contained in:
@@ -182,9 +182,14 @@ pub const App = struct {
|
||||
if (strip) translate_mods.alt = false;
|
||||
}
|
||||
|
||||
// We strip super on macOS because its not used for translation
|
||||
// it results in a bad translation.
|
||||
// On macOS we strip ctrl because UCKeyTranslate
|
||||
// converts to the masked values (i.e. ctrl+c becomes 3)
|
||||
// and we don't want that behavior.
|
||||
//
|
||||
// We also strip super because its not used for translation
|
||||
// on macos and it results in a bad translation.
|
||||
if (comptime builtin.target.isDarwin()) {
|
||||
translate_mods.ctrl = false;
|
||||
translate_mods.super = false;
|
||||
}
|
||||
|
||||
@@ -231,14 +236,7 @@ pub const App = struct {
|
||||
.surface => |surface| &surface.keymap_state,
|
||||
},
|
||||
@intCast(keycode),
|
||||
if (comptime builtin.target.isDarwin()) mods: {
|
||||
// On macOS we strip ctrl because UCKeyTranslate
|
||||
// converts to the masked values (i.e. ctrl+c becomes 3)
|
||||
// and we don't want that behavior.
|
||||
var v = translate_mods;
|
||||
v.ctrl = false;
|
||||
break :mods v;
|
||||
} else translate_mods,
|
||||
translate_mods,
|
||||
);
|
||||
|
||||
// TODO(mitchellh): I think we can get rid of the above keymap
|
||||
|
||||
Reference in New Issue
Block a user