waveterm/frontend/app/view/term
Evan Simkowitz a2974a3e6d
Fix escape getting eaten by global event handler (#1668)
The terminal keydown handler was set to filter out all key bindings that
have a registered global handler, regardless of whether they actually
propagated or not. This allowed the global handlers to still work
despite the terminal input having precedence, but it also meant that
global key bindings that were invalid for the current context would
still get eaten and not sent to stdin.

Now, the terminal keydown handler will directly call the global handlers
so we can actually see whether or not the global key binding is valid.
If the global handler is valid, it'll be processed immediately and stdin
won't receive the input. If it's not handled, we'll let xterm pass it to
stdin. Because anything xterm doesn't handle gets sent to the
globally-registered version of the handler, we need to make sure we
don't do extra work to process an input we've already checked. We'll
store the last-handled keydown event as a static variable so we can
dedupe later calls for the same event to prevent doing double work.
2025-01-02 08:38:07 -08:00
..
fitaddon.ts Remove 6px padding from terminal block, make scrollbar properly overlay the terminal contents (#1009) 2024-10-10 14:42:44 -07:00
ijson.tsx move terminal into its own directory under view 2024-06-17 10:18:38 -07:00
term-wsh.tsx vdom terminal toolbar (#1263) 2024-11-11 13:11:09 -08:00
term.scss Terminal search (#1654) 2025-01-01 10:43:02 -08:00
term.tsx Fix escape getting eaten by global event handler (#1668) 2025-01-02 08:38:07 -08:00
termsticker.tsx Switch from Less to Scss (#1335) 2024-11-21 16:05:04 -08:00
termtheme.ts transparent terminal themes (#1561) 2024-12-19 10:41:28 -08:00
termutil.ts transparent terminal themes (#1561) 2024-12-19 10:41:28 -08:00
termwrap.ts Terminal search (#1654) 2025-01-01 10:43:02 -08:00
xterm.css Remove 6px padding from terminal block, make scrollbar properly overlay the terminal contents (#1009) 2024-10-10 14:42:44 -07:00