mirror of
https://github.com/Archeb/opentrace.git
synced 2026-04-26 01:05:55 +03:00
[GH-ISSUE #9] 中文输入法冲突 #114
Labels
No labels
bug
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrace#114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @People-11 on GitHub (Jun 4, 2023).
Original GitHub issue: https://github.com/Archeb/opentrace/issues/9
按下回车键时,OpenTrace 会解析输入的目标,但是使用中文输入法按下回车输出英文时,也会触发解析。如果此时输入的是不正确的目标,则会报 could not find host 错误。
@Archeb commented on GitHub (Jun 4, 2023):
已在
064eec1759中修复@tsosunchia commented on GitHub (Jun 5, 2023):
@Archeb macOS里也有此问题(
@Archeb commented on GitHub (Jun 5, 2023):
确实,重新开启此issue
@Archeb commented on GitHub (Jun 8, 2023):
macOS 感觉上是修不好了……
因为在 .NET 上我缺乏必要的平台 API 来检测输入法状态;而 macOS 在输入法开启的状态下仍然会完整的把 KeyDown、KeyUp 等事件传给程序(Windows上只会把KeyUp传过来),所以对于程序来说似乎没有办法判别。
但是根据我的测试,以在macOS上追踪 baidu.com 为例:
当用户打出 baidu.com 中的英文句点时,前面的内容将按照原文(baidu)被输入进文本框。只要用户输入完 com 才按enter,就能正确完整输入域名并且开始追踪。
该问题暂时被列为 wontfix