contour icon indicating copy to clipboard operation
contour copied to clipboard

Terminal tabs: `SwitchTabToLeft`/`SwitchTabToRight` keybind is executed not in the active window

Open whisperity opened this issue 8 months ago • 1 comments
trafficstars

Contour Terminal version

0.6.1.7494

Installer source

GitHub: release page

Operating System

MacOS San Sequoia 15.3.1

Architecture

ARM64

Other Software

Steps to reproduce

  1. Start contour normally.
  2. echo 1 to write a 1 into the first shell
  3. create a new tab
  4. echo 2 to write a 2 into the second shell
  5. create a new tab
  6. echo 3 to write a 3 into the third shell

Now three windows will be open, with the oldest originally opened one and the newest one showing 3, while the middle one is showing 2.

Image

With the middle window focused, execute the SwitchTabToRight keybind. Observe that the oldest window (which previously showed the 3 shell, just like the newest window) now switched to the 1 shell.

Image

No matter which window is actually in focus, it looks like the switch keybinds are always handled by the original/main/oldest window of the process.

Expected Behavior

The keybind should be handled by the window that is currently in focus.

Interestingly, other types of keybinds, such as ViNormalMode or ScrollMarkUp are properly handled by the "active" window.

Actual Behavior

Additional notes

No response

whisperity avatar Mar 02 '25 13:03 whisperity

See comment: https://github.com/contour-terminal/contour/issues/1726 i think we should not manage tabs between windows

Yaraslaut avatar Mar 17 '25 19:03 Yaraslaut