Fix mouseEventsRequireAlt by stripping alt from PTY mouse reports.
Alt is only used locally to gate passthrough; applications like tmux ignore alt-modified SGR sequences. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+2
-1
@@ -139,7 +139,8 @@ declare module '@xterm/headless' {
|
||||
/**
|
||||
* When enabled and the terminal is in mouse events mode, mouse click, drag,
|
||||
* and move events are only sent to the underlying application when the alt
|
||||
* key is held. Wheel events are not affected. This allows normal text
|
||||
* key is held. The alt key is not included in the mouse reports sent to the
|
||||
* application. Wheel events are not affected. This allows normal text
|
||||
* selection by default while still supporting application mouse interaction
|
||||
* and scrolling when holding alt. When enabled, this takes precedence over
|
||||
* `macOptionClickForcesSelection`.
|
||||
|
||||
Vendored
+2
-1
@@ -209,7 +209,8 @@ declare module '@xterm/xterm' {
|
||||
/**
|
||||
* When enabled and the terminal is in mouse events mode, mouse click, drag,
|
||||
* and move events are only sent to the underlying application when the alt
|
||||
* key is held. Wheel events are not affected. This allows normal text
|
||||
* key is held. The alt key is not included in the mouse reports sent to the
|
||||
* application. Wheel events are not affected. This allows normal text
|
||||
* selection by default while still supporting application mouse interaction
|
||||
* and scrolling when holding alt. When enabled, this takes precedence over
|
||||
* `macOptionClickForcesSelection`.
|
||||
|
||||
Reference in New Issue
Block a user