mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
Merge pull request #634 from mitchellh/alt-scroll
Alternate scroll disabled by default, only sends up/down
This commit is contained in:
@ -1195,15 +1195,6 @@ pub fn scrollCallback(
|
||||
}
|
||||
}
|
||||
|
||||
if (x.delta_unsigned > 0) {
|
||||
const seq = if (x.delta < 0) "\x1bOC" else "\x1bOD";
|
||||
for (0..x.delta_unsigned) |_| {
|
||||
_ = self.io_thread.mailbox.push(.{
|
||||
.write_stable = seq,
|
||||
}, .{ .forever = {} });
|
||||
}
|
||||
}
|
||||
|
||||
// After sending all our messages we have to notify our IO thread
|
||||
try self.io_thread.wakeup.notify();
|
||||
return;
|
||||
|
@ -165,7 +165,7 @@ const entries: []const ModeEntry = &.{
|
||||
.{ .name = "focus_event", .value = 1004 },
|
||||
.{ .name = "mouse_format_utf8", .value = 1005 },
|
||||
.{ .name = "mouse_format_sgr", .value = 1006 },
|
||||
.{ .name = "mouse_alternate_scroll", .value = 1007, .default = true },
|
||||
.{ .name = "mouse_alternate_scroll", .value = 1007 },
|
||||
.{ .name = "mouse_format_urxvt", .value = 1015 },
|
||||
.{ .name = "mouse_format_sgr_pixels", .value = 1016 },
|
||||
.{ .name = "alt_esc_prefix", .value = 1036, .default = true },
|
||||
|
Reference in New Issue
Block a user