waveterm/frontend/app
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
..
asset workspace switcher + new elements (in storybook) (#1148) 2024-10-27 13:22:06 -07:00
block Terminal search (#1654) 2025-01-01 10:43:02 -08:00
element Fix the progressbar component (#1661) 2025-01-01 11:27:46 -08:00
hook browser view (#1005) 2024-10-17 14:34:02 -07:00
modals Make TOS modal buttons larger (#1573) 2024-12-19 12:16:03 -08:00
notification Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
store Fix escape getting eaten by global event handler (#1668) 2025-01-02 08:38:07 -08:00
tab Allow empty workspace name while editing workspace (#1592) 2024-12-20 08:55:28 -08:00
view Fix escape getting eaten by global event handler (#1668) 2025-01-02 08:38:07 -08:00
workspace Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
app-bg.tsx browser view (#1005) 2024-10-17 14:34:02 -07:00
app.scss wsh run (#1376) 2024-12-04 14:16:50 -08:00
app.tsx new utility fn, deepCompareReturnPrev. use for settings prefix atom to do a deep equal (#1630) 2024-12-26 11:09:48 -08:00
mixins.scss Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
reset.scss Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
theme.scss Search box component (#1579) 2024-12-19 13:49:48 -08:00