Skip to content

Conversation

@madsrasmussen
Copy link
Contributor

Fixes: #20527

Change the event listener from change to input to ensure changes are detected when using the Ctrl + S keyboard shortcut.

Copilot AI review requested due to automatic review settings October 22, 2025 09:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the Ctrl + S keyboard shortcut was not saving dictionary items because changes were not being detected. The fix changes the event listener from @change to @input to capture text input immediately rather than waiting for the textarea to lose focus.

Key Changes

  • Changed event listener from @change to @input on the textarea element
  • Removed unnecessary type guard checking for UUITextareaEvent

@madsrasmussen madsrasmussen changed the title Dictionary: Shortcut Ctrl + S not saving dictionary items Dictionary: Fix shortcut Ctrl + S not saving dictionary items Oct 22, 2025
Copy link
Member

@nielslyngsoe nielslyngsoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

work as expected

@nielslyngsoe nielslyngsoe enabled auto-merge (squash) October 22, 2025 10:01
@nielslyngsoe nielslyngsoe merged commit 28c01d2 into release/17.0 Oct 22, 2025
23 checks passed
@nielslyngsoe nielslyngsoe deleted the v17/hotfix/dictionary-detect-input-changes branch October 22, 2025 10:29
nielslyngsoe added a commit that referenced this pull request Oct 22, 2025
* switched event listener from 'change' to 'input'

* Update workspace-view-dictionary-editor.element.ts
@nielslyngsoe nielslyngsoe added release/16.4.0 release/no-notes Not directly part of the release (updating README, build scripts, tests, etc.) labels Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/frontend release/no-notes Not directly part of the release (updating README, build scripts, tests, etc.) release/16.4.0 release/17.0.0-rc1 release/17.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants