-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Typing s opens search #1204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I want to have a form in the about page of my website, and this makes I propose to enable user to override the keycode activating search (including disabling keyboard activation) by:
I've never written js in my life, but this doesn't look too challenging (actually, a sketch of the js part). PR welcome? if so, happy to hear any improvements to the plan above. |
I would prefer to avoid adding configuration here if possible. Is there a reason that the check to avoid conflict isn't working for your form? |
Ah, I hadn't understood that mechanism. It is because the fields's type is not one of the excluded types, it is "email". I can make the trivial PR to also include email, though this does seem a bit of a whack-a-mole (I might find myself using a different new field type tomorrow). Perhaps it would be better to instead enumerate the types that mdbook uses in normal operation, and apply the s behavior only to them? |
If you know of a way to do that, feel free to open a PR! I'm not sure if it is possible to check for an "allowed" list, though. |
@briantliao any reason this was closed? The PR #1569 was unfortunately not merged yet. I added a comment there; the comment from @ehuss worked perfectly fine. I would love to get this merged so others do not have the same problem when adding a simple sign-up form from a newsletter or similar. |
It was old… yes would like to have it merged please. |
When you type s, it opens search. Is there a way to disable this?
The text was updated successfully, but these errors were encountered: