-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Text can't be selected when using simple theme with JS enabled #794
Comments
Is this related to #778 ? .. would your issue resolved by this suggestion #778 (comment) ? |
No this issue is not about the autocompletion, it's about the actual results. |
Closes: searxng#794 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
@pavlukivan sorry for the delay .. could you please give it a try; I prepared PR #997 to fix the issue. |
The bug fix for this issue contained another bug: #1002. Because of that the bug fix got reverted on master for now until we have a proper fix; Reopening. |
For keyboard navigation the highlightResult() function in keyboard.js steals the focus. On a mouse click event (non keyboard action) the focus should resist where it is, otherwise a marked region gets lost. This is the reason why text can't be selected when using simple theme with JS enabled. Closes: searxng#794 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
For keyboard navigation the highlightResult() function in keyboard.js steals the focus. On a mouse click event (non keyboard action) the focus should resist where it is, otherwise a marked region gets lost. This is the reason why text can't be selected when using simple theme with JS enabled. Closes: searxng#794 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
edit: nvm the script was cached, it works properly now! |
This is a pitfall I also often tap .. thanks for verifying 👍 |
(Commit: 96ab5e5, most likely reproducible on master)
When using the "simple" theme, try selecting any text in the search results. It won't get selected, presumably because of a custom selection event handler. Said event handler should not prevent text from being selected (For example, personally I rely on being able to do that a lot). Also, text can be selected with JS disabled.
The text was updated successfully, but these errors were encountered: