Skip to content

[6.x] Don't navigate between assets when typing in a field - #15111

Merged
jasonvarga merged 2 commits into
6.xfrom
asset-nav-shortcut-in-fields
Aug 4, 2026
Merged

[6.x] Don't navigate between assets when typing in a field#15111
jasonvarga merged 2 commits into
6.xfrom
asset-nav-shortcut-in-fields

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where using Ctrl + Left/Right (or Cmd + Left/Right on macOS) to move the cursor a word at a time in the Alt Text field would navigate to the previous/next asset instead.

This was happening because the asset editor's keydown handler is bound to window and never checked where focus was, so the shortcut fired even while typing in a field.

This PR fixes it by ignoring the shortcut when the event target is an input, textarea, select or contenteditable element.

Fixes #15104

@jasonvarga
jasonvarga merged commit 162bb99 into 6.x Aug 4, 2026
22 checks passed
@jasonvarga
jasonvarga deleted the asset-nav-shortcut-in-fields branch August 4, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants