Skip to content

fix: focus editor after clearAll #2430 - #2440

Closed
Anton-dev3306 wants to merge 1 commit into
beautifier:mainfrom
Anton-dev3306:gix/focus-after-clear-2430
Closed

fix: focus editor after clearAll #2430#2440
Anton-dev3306 wants to merge 1 commit into
beautifier:mainfrom
Anton-dev3306:gix/focus-after-clear-2430

Conversation

@Anton-dev3306

Copy link
Copy Markdown

Closes #2430

After clicking "Clear", focus was not returned to the editor, requiring
the user to click manually before typing.

  • CodeMirror path: call the.editor.focus() after setValue('')
  • Textarea path: call $('#source').focus() after val('')

No core beautifier logic affected. No JS/Python parity required (UI-only change).

@bitwiseman bitwiseman closed this Jun 20, 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.

Auto-focus editor or textarea after clicking the "Clear" button on the web UI

2 participants