Skip to content

feat: auto-focus URL field when a request is opened#1348

Open
Aanish-Bangre wants to merge 1 commit intofoss42:mainfrom
Aanish-Bangre:feat/url-autofocus-v2
Open

feat: auto-focus URL field when a request is opened#1348
Aanish-Bangre wants to merge 1 commit intofoss42:mainfrom
Aanish-Bangre:feat/url-autofocus-v2

Conversation

@Aanish-Bangre
Copy link
Contributor

PR Description

This PR improves the request creation workflow by automatically focusing the URL input field when a new request is opened.

Currently, after pressing the + button to create a new request, users need to manually click the URL field before typing. With this change:

  • The URL field receives focus immediately after a new request is created.
  • The cursor is placed inside the field so users can start typing instantly.
  • Focus works correctly on both desktop and smaller screen layouts.

Additionally, focus handling was improved to account for the drawer behavior on smaller screens. The URL field waits until the drawer closes before requesting focus to ensure the editor is visible.

This PR is opened as a fresh branch to preserve commit history after the previous PR was closed due to a rebased branch.

Before

API.Dash.before.mp4

After

2026-03-05.17-10-56.mp4

Related Issues


Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

  • No, and this is why: This change affects UI focus behavior and does not modify business logic or APIs.

OS on which you have developed and tested the feature?

  • Windows
  • macOS
  • Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-focus URL field when creating a new request

1 participant