Skip to content

[stable33] fix: Restore editor focus on Save As modal close#5478

Draft
backportbot[bot] wants to merge 1 commit intostable33from
backport/5474/stable33
Draft

[stable33] fix: Restore editor focus on Save As modal close#5478
backportbot[bot] wants to merge 1 commit intostable33from
backport/5474/stable33

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Mar 11, 2026

Backport of #5474

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

When the Save As dialog is dismissed (via Cancel or Esc), focus was not returning to the document iframe. This change restores focus to the document iframe by sending a Grab_Focus postMessage before the close event.

Signed-off-by: codewithvk <vivek.javiya@collabora.com>

[skip ci]
@backportbot backportbot bot requested review from codewithvk and juliusknorr March 11, 2026 21:11
@backportbot backportbot bot added bug Something isn't working 3. to review Ready to be reviewed labels Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant