#11004: fix(ui): add Enter key support to Gateway Access inputs
app: web-ui
stale
Fixes #11003
Pressing Enter in the token, password, or session key inputs on the Overview page now triggers the Connect action.
## Changes
- Added `@keydown` handlers to the Gateway Token, Password, and Default Session Key inputs in `ui/src/ui/views/overview.ts`
- Each handler calls `props.onConnect()` when Enter is pressed, matching standard form submission behavior
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
- Adds `@keydown` handlers to the Gateway Token, Password, and Default Session Key inputs on the Overview page.
- When the Enter key is pressed, the handler calls `props.onConnect()` to mirror typical “submit on Enter” behavior.
- Uses `e.preventDefault()` to avoid default browser behavior while triggering the connect action.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Change is small, localized to a single view, and adds straightforward key handling without altering data flow or external APIs.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(4/5) You can add custom instructions or style guidelines for the agent [here](https://app.greptile.com/review/github)!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#11527: feat(control-ui): UX improvements — Enter key, thinking icon, auto-...
by Annaxiebot · 2026-02-07
80.1%
#8774: Fix/frontend session key normalization
by zhaodageng · 2026-02-04
72.8%
#6352: fix(ux): update gateway token error message UI location
by Glucksberg · 2026-02-01
72.6%
#13960: fix(ui): preserve structured config validation error details
by constansino · 2026-02-11
71.7%
#17765: fix: add link to settings when chat shows auth error
by MisterGuy420 · 2026-02-16
71.7%
#15965: feat(ui): show inline token input on Chat page when auth fails
by alextnetto · 2026-02-14
70.6%
#6466: fix(gateway): add handshake timeout and connection error handling
by jarvis-raven · 2026-02-01
69.9%
#10093: fix: import gateway token from URL param into localStorage
by devjiro76 · 2026-02-06
69.9%
#9218: Fix Control UI chat resync on gaps and terminal events
by figitaki · 2026-02-05
69.6%
#14309: fix(ui): resolve chat event session key mismatch
by justonlyforyou · 2026-02-11
69.2%