tisfeng / Easydict

一个简洁优雅的词典翻译 macOS App。开箱即用,支持离线 OCR 识别,支持有道词典,🍎 苹果系统词典,🍎 苹果系统翻译,OpenAI,Gemini,DeepL,Google,Bing,腾讯,百度,阿里,小牛,彩云和火山翻译。A concise and elegant Dictionary and Translator macOS App for looking up words and translating text.
GNU General Public License v3.0
6.89k stars 351 forks source link

🐞 反馈问题:「划词翻译未选中文本时,保留上次结果」关闭时,仍会保留上次结果 #657

Open daypu opened 2 weeks ago

daypu commented 2 weeks ago

请先确认以下事项:

问题描述

使用option+d进行划词翻译,但是当「划词翻译未选中文本时,保留上次结果」关闭时,仍会保留上次结果 在浏览器(我用的是Arc),macos自带预览和文本编辑中,该问题均可以重现

该问题是否可以稳定重现?

可重现

重现步骤

使用option+d进行划词翻译

截图

https://github.com/user-attachments/assets/47e5d473-4750-4c1c-80e4-2fe4e9f944d0

运行日志(zip 文件)

MMLogs.zip

期望结果

「划词翻译未选中文本时,保留上次结果」关闭时,不会保留上次结果,输入框应该是空的

解决方案(可选)

No response

设备型号 && 系统版本

Apple M1 Pro, macOS 14.3.1

是否愿意提交 PR 解决该问题?

github-actions[bot] commented 2 weeks ago

Hello daypu, Thank you for your first issue contribution 🎉

tisfeng commented 2 weeks ago

ok,下个版本将会修复。

tisfeng commented 2 weeks ago

看了一下日志,你的 Arc 浏览器似乎不支持 Accessibility 取词,和这里 https://github.com/tisfeng/Easydict/issues/622#issuecomment-2297872203 一样,但在我和 @Jerry23011 电脑上测试是支持 Accessibility 的 🤯

可能 Arc 确实有点怪。

[2024-08-25 10:28:51.993 ● EZEventMonitor ● 624 ● ℹ️] -[EZEventMonitor shouldUseSimulatedKey:error:] ● Unsupported Accessibility App: Arc (company.thebrowser.Browser)
Jerry23011 commented 2 weeks ago

我之前也有测试调整 Arc 的一些设置,但是试了一圈没找到不支持 Accessibility 的情况