← Back to PRs

#11004: fix(ui): add Enter key support to Gateway Access inputs

by Annaxiebot open 2026-02-07 08:21 View on GitHub →
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