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

feat(classroom): add keyboard shortcuts and clean up interaction controls

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

Maintainer thường phản hồi trong vòng 1 ngày

@rishavvrajj đang làm issue này rồi.

Từ ngày 16/10/2026.

  • #125 của @rishavvrajj — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
html, javascript
Lĩnh vực
frontend

Hướng nghiên cứu

The payload names no files. Start from the /classroom_poc page: find where the connection toast fires on WebSocket connect and auto-join, where a global keydown listener would go for T and R, and where the presence buttons get their active styling. Done when the toast no longer appears, T and R trigger the reactions, Ctrl/Cmd+R still reloads, typing in inputs is unaffected, and the buttons lose the teal highlight. The issue text describes the change as already made, so confirm with a maintainer what remains before starting.

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

Mô tả

Problem

  • Joining or auto-joining /classroom_poc triggers a redundant “Connected to classroom” / “Viewing classroom” toast notification, even though the top navigation bar already shows the live connection status.
  • Thumbs-up and raise-hand actions were only available through on-screen mouse clicks.
  • Presence reaction buttons were highlighted in teal when active, creating unnecessary visual noise.

Solution

  • Toast removal: Removed the redundant connection toast on WebSocket connection and auto-join.
  • Keyboard shortcuts: Added T for thumbs-up 👍 and R for raise-hand ✋, with modifier-key guards (!e.ctrlKey && !e.metaKey) so browser refresh and text input are not affected.
  • Visual polish: Removed active-state highlighting from presence control buttons.

Testing

  • Joined and auto-joined a classroom; no redundant toast appears.
  • Pressed T and R to trigger thumbs-up and raise-hand reactions.
  • Verified that Ctrl + R / Cmd + R still refreshes the page.
  • Confirmed that typing in inputs does not trigger shortcuts.
Ngôn ngữ chính
HTML
Star
3
Fork
28
Merge trung bình
17 giờ 41 phút
Pull request đã merge (30 ngày)
7

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 alphaonelabs/learn

Tất cả issue của alphaonelabs/learn

Issue tương tự

Thêm issue về Web 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.