Skip to content

[6.x] Fix Link fieldtype preventing Cmd+S keyboard shortcut in Entry mode#14986

Open
lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix/issue-14598-link-cmd-s-shortcut
Open

[6.x] Fix Link fieldtype preventing Cmd+S keyboard shortcut in Entry mode#14986
lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix/issue-14598-link-cmd-s-shortcut

Conversation

@lazerg

@lazerg lazerg commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

When the Link fieldtype's Entry option is selected, opening the relationship selector (Stack) with a FocusScope traps keyboard events and prevents document-level handlers from seeing Cmd+S (or Ctrl+S) for saving the entry.

This PR adds a keydown handler to the Stack's content div that forwards keyboard shortcuts like Cmd+S to the document level, ensuring they reach global keyboard handlers.

Fixes #14598

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.

Link fieldtype breaks cmd + s shortcut when choosing "Entry"

1 participant