Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

mouse-event% vs get-mouse-state issues

Đang mở
#255 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
desktop

Hướng nghiên cứu

Trước tiên, hãy chạy racket -l- racket-paint/event-listener --mouse-state sau khi cài đặt racket-paint, sau đó so sánh các báo cáo của mouse-event% với get-mouse-state trên Mac, Windows và Unix. Điều tra những khác biệt theo từng nền tảng về các modifier và nút chuột được mô tả trong issue; công việc được xem là hoàn tất khi hai API báo cáo trạng thái nhất quán trên các nền tảng đã kiểm thử.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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:

  • control isn't reported in the mouse-event%, while it is reported by get-mouse-state.

  • get-mouse-state reports left button instead of right or middle
    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)
  • 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
Ngôn ngữ chính
Racket
Star
68
Fork
83
Merge trung bình
21 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của racket/gui

Tất cả issue của racket/gui

Issue tương tự

Thêm issue về Desktop Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.