diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-30 18:39:53 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:17 -0300 |
| commit | f99806de546c837ab6f2d5b1e3e8accc95e63a7e (patch) | |
| tree | 9b4c70a524f36e1966cbfbedd2d85525a3de01b6 /test/panes.zig | |
| parent | 14dc0b452cf646fe5c9f060fbe66afb01f153ac0 (diff) | |
| download | pardes-f99806de546c837ab6f2d5b1e3e8accc95e63a7e.tar.gz pardes-f99806de546c837ab6f2d5b1e3e8accc95e63a7e.zip | |
Over a program that tracks the mouse, B2 and B3 are pardes's execute and look, as in any pane, and Shift sends them to the program as its buttons 2 and 3; B1 and the wheel stay the program's, Shift keeping them pardes's
The Shift that sends B2 or B3 is left out of their reports and of the
drags they hold: it only chose the target. A B2 or B3 sweep of pardes's
moves nothing to the program under 1003.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/panes.zig')
| -rw-r--r-- | test/panes.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/panes.zig b/test/panes.zig index 6f321abf..935defb5 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -981,11 +981,11 @@ const TtySelectionTests = struct { const target = p.rects[1]; const tx = target.x + config.GUTTER + 2; const ty = bodyY(p, target); - // Shift: over a program that tracks the mouse the chord is - // pardes's only so, and elsewhere Shift changes nothing. + // Over a program that tracks the mouse B1 is its own, so + // the chord's B1 holds Shift; B3 is pardes's either way. p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = tx, .row = ty, .shift = true } }); - p.update(.{ .mouse = .{ .button = .right, .kind = .press, .col = tx, .row = ty, .shift = true } }); - p.update(.{ .mouse = .{ .button = .right, .kind = .release, .col = tx, .row = ty, .shift = true } }); + p.update(.{ .mouse = .{ .button = .right, .kind = .press, .col = tx, .row = ty } }); + p.update(.{ .mouse = .{ .button = .right, .kind = .release, .col = tx, .row = ty } }); p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = tx, .row = ty, .shift = true } }); var written: std.Io.Writer.Allocating = .init(p.gpa); defer written.deinit(); |
