You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 271ece4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(desktop): Cmd/Ctrl+F searches rendered HTML in the file preview
A workspace HTML file renders in a sandboxed opaque-origin iframe, so the
renderer can neither read its text nor see a Cmd/Ctrl+F pressed inside it,
and Electron has no page find to fall back on.
The renderer now names that iframe. The desktop shell catches Cmd/Ctrl+F
when focus is inside a frame with that name and asks the renderer to open
the file find bar. Typing in the bar runs the search inside the frame
through the main process, which paints highlights there and returns the
match count. Browsers keep their native page find, which already reaches
the frame.
AI-assisted; verified with the tests and tools listed above.
0 commit comments