Skip to content
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

希望增加自定义快捷键 #17

Open
PanJiaChen opened this issue Jan 15, 2018 · 5 comments
Open

希望增加自定义快捷键 #17

PanJiaChen opened this issue Jan 15, 2018 · 5 comments

Comments

@PanJiaChen
Copy link

现在默认 按住(meta/ctrl)键 + 划词时翻译

其实ctrl键比较高频的,就比如我只是想复制一个单词也会触发翻译,或者可以监听一下keyboard,当只有按了ctrl的时候会触发。

@oyyd
Copy link
Owner

oyyd commented Jan 17, 2018

非常合理的建议。现在已经监听了事件,再做一下相关处理也不困难

@oyyd oyyd added this to the v1.2.0 milestone Jun 19, 2018
@oyyd
Copy link
Owner

oyyd commented Jun 21, 2018

后来我仔细想了下,对于复制文本的情况,如果操作上不是:

  1. 按住ctrl
  2. 框选文本
  3. 点击c

的话,应该不会触发翻译操作。我自己的习惯是先框选文本再meta/ctrl + c。

但如果是上述操作的话,则一定会和触发划词翻译的操作冲突,暂时没有想到太好的解决办法。

@oyyd oyyd removed the next release label Jun 21, 2018
@oyyd oyyd removed this from the v1.2.0 milestone Jun 21, 2018
@lsdhfsdhf
Copy link

chrome本身有给插件设置 快捷键 的功能,我也是今天刚发现的:chrome://extensions/shortcuts

@lsdhfsdhf
Copy link

chrome本身有给插件设置 快捷键 的功能,我也是今天刚发现的:chrome://extensions/shortcuts

sign,抱歉,大家讨论的好像不是这个问题。chrome只是给插件调出设置快捷键。

@oyyd
Copy link
Owner

oyyd commented Mar 20, 2019

@lsdhfsdhf 是的,现在就是用的这个快捷键。PRs are welcome,我后面可能不会有太多时间投入到这个插件上(因为现在已经满足了我自己的大部分需求)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants