josStorer / chatGPTBox

Integrating ChatGPT into your browser deeply, everything you need is here
MIT License
9.89k stars 742 forks source link

Ctrl+B 快捷键与macOS默认快捷键冲突 #450

Open ernestyao opened 1 year ago

ernestyao commented 1 year ago

Describe the bug 问题描述 A clear and concise description of what the bug is.

Ctrl+B是macOS上文字编辑状态下退格的默认快捷键,与呼出ChatGPTBox冲突。同时,在Safari扩展里,没有修改快捷键的功能。

To Reproduce 如何复现 Steps to reproduce the behavior:

Ctrl+B触发ChatGPTBox窗口而不是文本框退格

Expected behavior 期望行为 A clear and concise description of what you expected to happen.

希望Safari版扩展能修改快捷键

Screenshots 截图说明 If applicable, add screenshots to help explain your problem.

Please complete the following information): 请补全以下内容

Additional context 其他 Add any other context about the problem here.

josStorer commented 1 year ago

目前的快捷键依赖浏览器本身提供的功能,safari没有提供设置,但其他浏览器有 目前我其实不确定safari是否支持这种快捷键调用方式,其他快捷键能使用吗 (alt+B, ctrl+shift+H) 如果都不能用,那说明应该是safari本身就不支持这种快捷键注册

ernestyao commented 1 year ago

alt+B, ctrl+shift+H 都能正常触发 ctrl+B的触发也是OK的,主要是这个组合本身是macOS自带的快捷键。因为几乎是全系统统一的快捷键,我习惯用ctrl+字母的形式编辑文字(而不是使用上下左右等),所以装上扩展后,就很容易忘记,导致误触发。

josStorer commented 1 year ago

你有推荐的快捷键吗,不冲突的,我后续版本尝试更新下

ernestyao commented 1 year ago

Safari的话,ctrl+x?

josStorer commented 1 year ago

这不是剪切的快捷键吗

ernestyao commented 1 year ago

macOS下剪切是cmd+x

josStorer commented 1 year ago

ok

QuantumRoseinAmethystVase commented 1 year ago

好的

  1. 光标焦点不在文本框,Ctrl + B不会影响ChatBox的唤出;
  2. 光标在文本框,Ctrl + B不会影响ChatBox的唤出;
  3. 光标在ChatBox文本框,Ctrl + B不会影响ChatBox的唤出;
  4. 绝大多数人“光标前移一个字符”会使用←而不是Ctrl + B;
  5. 现在Ctrl + X与其他app设置的快捷键冲突了。
ernestyao commented 1 year ago

好的

  1. 光标焦点不在文本框,Ctrl + B不会影响ChatBox的唤出;
  2. 光标在文本框,Ctrl + B不会影响ChatBox的唤出;
  3. 光标在ChatBox文本框,Ctrl + B不会影响ChatBox的唤出;
  4. 绝大多数人“光标前移一个字符”会使用←而不是Ctrl + B;
  5. 现在Ctrl + X与其他app设置的快捷键冲突了。

和系统默认的快捷键冲突是不合适的。不在文本框,也不会用Ctrl + B这个快捷键啊,这本来就是系统级的文本编辑状态下的快捷键。至于←,你可以试一下,习惯Ctrl+B/F/P/N……以后,还会不会去用方向键(最好配合将Caps Lock和Ctrl对调服用,效果更佳,HHKB就是这个键盘布局)

当然,最好的方式还是能开放让用户自己设置,大家可以按自己的习惯来