Skip to content

Search (Ctrl+F) trap for searching files (rather than text) is not useful #268

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

Closed
kees-closed opened this issue Nov 17, 2018 · 5 comments
Closed
Labels
enhancement New feature or request

Comments

@kees-closed
Copy link

kees-closed commented Nov 17, 2018

There is a trap in Notes for Ctrl+F which does not allow text searches in a file, it then searches for files. This is not ideal or useful. Please introduce a different trap for this, e.g. Ctrl+Shift+F, please don't break regular browser workflows.

@kees-closed kees-closed changed the title Search (Ctrl+F) trap for searching files (rather text) is not useful Search (Ctrl+F) trap for searching files (rather than text) is not useful Nov 17, 2018
@korelstar
Copy link
Member

Sounds reasonable.
However, this is done by the Nextcloud server and not by the app itself. Does anybody know if we can deactivate this in this app?

@korelstar korelstar added the enhancement New feature or request label Nov 17, 2018
@marcelklehr
Copy link
Member

@korelstar It should be deactivated by default, so I assume there is some code that sets this up in this app.

@korelstar
Copy link
Member

No, I don't think that we activate the shortcut manually. Instead, it's activated by the Nextcloud core when providing a search using the search API:
https://github.com/nextcloud/server/blob/master/core/search/js/search.js#L124

An option would be to add an option to the search API, that doesn't add the listener when the option is set.

@stefan-niedermann
Copy link
Member

I think pressing ctrl f a second time opens the browser default search, can someone confirm this?

@kees-closed
Copy link
Author

@stefan-niedermann that indeed works! I guess it can be closed then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants