contour-terminal / contour

Modern C++ Terminal Emulator
http://contour-terminal.org/
Apache License 2.0
2.31k stars 100 forks source link

Some input gets forwarded to program while in normal mode #1468

Closed 0x5c closed 2 weeks ago

0x5c commented 4 months ago

Contour Terminal version

Contour Terminal Emulator 0.4.3

Installer source

something else (please specify below)

Operating System

VoidLinux

Architecture

x86-64

Other Software

No response

Steps to reproduce

  1. Open program that can print inputs received (ie: micro's raw mode, could even be a program that responds to those inputs)
  2. Go in normal mode separate bug can be seen imemdiately: the space of [Ctrl+Shift+Space] gets forwarded immediately at the same time contour switches to normal mode, but without any modifiers
  3. Some inputs are forwarded

Expected Behavior

Nothing gets forwarded outside insert mode

Actual Behavior

Input Forwarded on modifiers
Escape no
Enter no
Tab no
Backspace no
F1~12 no
Mouse click (all 3) yes, [Shift] is intercepted by contour's UI and places the normal mode cursor.
([Ctrl] modifier is forwarded)
Scroll (all directions) yes (except [Shift])
([Ctrl] modifier is forwarded)

Additional notes

This happens seemingly regardless of the input protocol used and normal/alternate buffer; this reproduces in zsh, micro (neither modifyOtherKeys nor CSLu), and nvim (CSLu)