xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.64k stars 90 forks source link

GoldenDict's clipboard translation feature doesn't work in Brave browser #1624

Closed EsuRt closed 3 months ago

EsuRt commented 3 months ago

描述 bug GoldenDict的剪贴板翻译快捷键设置为Ctrl+C,Ctrl+C后,在Brave浏览器中选择单词并使用快捷键,会出现翻译上一个单词的情况,并且导致无法复制当前单词的情况。这个情况在其他浏览器或软件中没有出现。

复现 bug 的步骤

  1. GoldenDict的剪贴板翻译快捷键设置为Ctrl+C,Ctrl+C。
  2. 在Brave浏览器中选择单词并使用快捷键。
  3. 弹出的翻译窗口显示的是上一个被复制单词的翻译词条。

受影响的词典

期望的结果 弹出的翻译窗口显示的是当前被复制单词的翻译词条。

相关的截图

https://github.com/xiaoyifang/goldendict-ng/assets/15177069/58777e7d-6639-430c-bf74-55bc36255789

系统和软件的版本

github-actions[bot] commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.

Describe bug GoldenDict's clipboard translation shortcut key is set to Ctrl+C. After Ctrl+C, select a word in the Brave browser and use the shortcut key. The previous word will be translated, and the current word cannot be copied. This situation does not occur in other browsers or software.

Steps to reproduce bug

  1. GoldenDict’s clipboard translation shortcut keys are set to Ctrl+C, Ctrl+C.
  2. Select the word and use the shortcut keys in the Brave browser.
  3. The pop-up translation window displays the translation entry of the last copied word.

Affected dictionaries none

Desired results The pop-up translation window displays the translation entry of the currently copied word.

Relevant screenshots

https://github.com/xiaoyifang/goldendict-ng/assets/15177069/58777e7d-6639-430c-bf74-55bc36255789

System and software version

xiaoyifang commented 3 months ago

以右键-管理员模式运行gd-ng看下。

github-actions[bot] commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.

Right-click and run gd-ng in administrator mode to take a look.

EsuRt commented 3 months ago

以右键-管理员模式运行gd-ng看下。

Windows 10上管理员权限运行正常没问题,Windows 11上非管理员也没问题。

github-actions[bot] commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.

Right-click and run gd-ng in administrator mode to take a look.

It runs normally with administrator rights on Windows 10 and no problem, and it works fine for non-administrators on Windows 11.