[Feature request] Disable capture of Ctrl+F keyboard shortcut

未关闭 适合新手
#3,240 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
70/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
冷清
技术栈
javascript
领域
frontend

调研方向

首先定位 Tasks view 中处理 Ctrl-F 的键盘快捷键处理程序,以及打开 Nextcloud Search 的代码。在 Tasks view 中复现该快捷键,然后验证 Ctrl-F 是否会改为调用浏览器的 Find in page;如果保留了其他搜索快捷键,请检查它是否仍会打开 Nextcloud Search。完成的标准是 Ctrl-F 不再被拦截。

由索引模型根据 Issue 内容生成。

描述

enhancement
Is your feature request related to a problem? Please describe.

In Tasks view, I often want to search for a term in the task titles.

Normally, I would press Ctrl-F, which is the Find in page keyboard shortcut in most browsers. Then I would enter the search term and press Enter. This is a familiar, efficient workflow that accords with habit and muscle memory.

Nextcloud Tasks breaks that workflow, because it intercepts the Ctrl-F keyboard shortcut, so that instead of launching the browser's Find in page feature, it instead launches Nextcloud's Search dialogue.

This violates the UX/UI principle of least surprise.

Nextcloud's Search dialogue doesn't just search the contents of the page (which is what the user would expect after hitting Ctrl+F in a web browser). It instead searches the user's entire Nextcloud account, and can be quite slow about it!

This means that a Nextcloud Tasks user has to choose between two slow, unpalatable, friction-inducing options:

  1. Switch to the mouse (a problem in itself for some disabled users) and labouriously access the browser's Find in page function by manually clicking through the relevant browser toolbar menus.
  2. Wait for the Nextcloud Search to load, and then wait again for it to perform its search (which typically gives more results than the user wants, e.g. calendar events, documents, etc), and then wait yet again for it to navigate to the task of interest once selected.
Describe the solution you'd like

Ctrl-F should not be intercepted by Nextcloud Tasks.

Describe alternatives you've considered

If it is still desired to have a keyboard shortcut for Nextcloud Search from Nextcloud Tasks, then it should be something other than Ctrl-F.

For instance, it could be Ctrl-Shift-F.

Additional context

No response

主要语言
JavaScript
星标
710
派生
125
平均合并
19 小时 37 分钟
30 天内合并 PR
12

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/tasks 的其他 Issue

查看 nextcloud/tasks 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。