mouse-event% vs get-mouse-state issues
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- desktop
调研方向
安装 racket-paint 后,首先运行 racket -l- racket-paint/event-listener --mouse-state,然后在 Mac、Windows 和 Unix 上将 mouse-event% 的报告与 get-mouse-state 进行比较。调查 issue 中描述的平台特定修饰键和鼠标按钮差异;当两个 API 在测试的平台上报告一致的状态时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Following the results gathered from https://racket.discourse.group/t/help-me-gather-keystrokes-and-mouse-events-for-varied-platforms/307/7
On Mac, there are several issues:
-
controlisn't reported in themouse-event%, while it is reported byget-mouse-state. -
get-mouse-state reports
leftbutton instead ofrightormiddle
Example of such discrepancies:- mouse-event%:
right:shift:meta:right-down
get-mouse-state:(914 602 left shift meta control) - mouse-event%:
right:right-down
get-mouse-state:(614 435 left control)
- mouse-event%:
-
Some Mac users reported that modifiers are not picked at all with mouse events
On Windows, things are mostly ok except that meta or alt are not always reported in the mouse-event%. Otherwise, the event also reports meta while the state reports alt.
Example:
- mouse-event%:
control:shift:left-up
get-mouse-state:(1878 456 shift control alt)
On Unix, the only issue I found is that the mouse-event% reports meta while the state reports alt.
Unfortunately I don't own a Mac or a Windows machine (only a Linux) so I can't really attempt to debug this. However, one can easily try it out with this:
raco pkg install racket-paint
racket -l- racket-paint/event-listener --mouse-state
- 主要语言
- Racket
- 星标
- 68
- 派生
- 83
- 平均合并
- 12 天 5 小时
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
racket/gui 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
Colorer messes up when given a lexer that supplies nonzero backups可能已有人在做 @otherjoel 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 45/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
KnifeLemon/Filee#363 ·
维护者通常 1 天内回复
-
bug good first issue help wanted
难度 2/5 1-3 小时 新手友好度 63/100
marcovisona/arca#5 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
longbridge/gpui-kit#3620 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 65/100
mltframework/shotcut#1943 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
MoonshotAI/kimi-code#4315 ·
维护者通常 1 天内回复