Skip to content

Comments

Enable Ctrl+F find-in-page in markdown viewer#51

Open
rutgersc wants to merge 1 commit intoalecdotdev:masterfrom
rutgersc:fix/enable-ctrl-f-find
Open

Enable Ctrl+F find-in-page in markdown viewer#51
rutgersc wants to merge 1 commit intoalecdotdev:masterfrom
rutgersc:fix/enable-ctrl-f-find

Conversation

@rutgersc
Copy link

The prevent-default plugin was blocking all browser shortcuts including Ctrl+F. Configure it to allow the FIND shortcut so users can search within rendered markdown.

Not to spam you with too many PRs, but I thought this one could be useful for other users as well.

The prevent-default plugin was blocking all browser shortcuts including
Ctrl+F. Configure it to allow the FIND shortcut so users can search
within rendered markdown.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alecdotdev
Copy link
Owner

could you provide a screenshot (or gif) of the feature?

@rutgersc
Copy link
Author

image

It covers the top bar, but it functions as expected

@alecdotdev
Copy link
Owner

if you could make it offset to not cover the title bar ill merge!

@rutgersc
Copy link
Author

If only things were that easy.

The native browser find bar renders at the very top of the webview, overlapping your custom title bar. Since WebView2
doesn't let you reposition it, I'll replace it with a custom find bar in the frontend.

The alternative that it generated was pretty sloppy, using window.find. Constantly losing focus and such.

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.

2 participants