Skip to content

fix: allow ESC to exit inline argument input focus#1004

Open
Razuer wants to merge 2 commits into
vicinaehq:mainfrom
Razuer:fix/escape-from-extension-input
Open

fix: allow ESC to exit inline argument input focus#1004
Razuer wants to merge 2 commits into
vicinaehq:mainfrom
Razuer:fix/escape-from-extension-input

Conversation

@Razuer
Copy link
Copy Markdown
Contributor

@Razuer Razuer commented Jan 23, 2026

Summary

  • Enables ESC key to exit focus from inline argument inputs (used by extensions, scripts, etc.).
  • Returns focus to the main search bar instead of closing the application.
  • Clears input values on exit to reset the focus/execution flow.

Details

  • Component: InlineQLineEdit (used in ArgCompleter).
  • Fix 1 (UX): Intercepts Qt::Key_Escape in InlineQLineEdit and emits a signal instead of ignoring it (which previously caused the event to bubble up and close the window).
  • Fix 2 (Logic): Clears the input values in ArgCompleter when ESC is pressed. This ensures that subsequent activation of the item triggers the "focus arguments" logic again, rather than the "execute command" logic (which runs when values are present).

Usage

  1. Open a command with arguments (e.g., an extension or script).
  2. Click the command to focus the inline input.
  3. Type something.
  4. Press ESC -> Focus should return to the main search bar (window stays open).
  5. Click the command again -> Input should focus again (instead of executing immediately).

When an extension input field in the search bar is focused, pressing
ESC now returns focus to the main search bar instead of closing the
entire launcher window. This allows users to exit the argument input
naturally using ESC while preserving the expected close behavior when
focused on the main search bar.
When pressing ESC to exit an extension argument input, the typed values
are now cleared. This ensures that clicking the item again triggers the
argument focus behavior instead of immediately executing the command
with stale input values.
@Razuer Razuer changed the title fix: allow ESC to exit extension argument input focus fix: allow ESC to exit inline argument input focus Jan 23, 2026
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.

1 participant