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

UploadPicker: "u" hotkey does not work on non-Latin keyboard layouts

Đang mở Phù hợp với người mới
#2,216 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 7 ngày

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

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
90/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu với lib/vue/components/UploadPicker.vue và kiểm tra phần thiết lập useHotKey cùng handler onKeyDown. Issue đề xuất xóa phần kiểm tra dư thừa đối với event.key hoặc thay vào đó kiểm tra event.code. Hoàn thành khi trình chọn upload mở bằng phím U vật lý trên cả bố cục bàn phím Latin và không phải Latin.

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

Mô tả

Steps to reproduce
  1. Use a non-Latin OS keyboard layout (e.g. Russian).
  2. Open the upload picker (the "New" / upload area where the picker is available).
  3. Press the physical key that produces U on a Latin layout (on a Russian layout: Г).
Expected

The upload picker menu opens, as it does with a Latin layout.

Actual

Nothing happens; it only works with a Latin layout.

Cause

lib/vue/components/UploadPicker.vue:

useHotKey('u', this.onKeyDown, { ... })
...
onKeyDown(event: KeyboardEvent) {
  if (event.key === 'u') {          // <-- fails for non-Latin layouts
    ...
    this.openedMenu = true
  }
}

useHotKey (@nextcloud/vue) matches the physical key via event.code for a non-ASCII event.key, so the callback is invoked, but the inner event.key === 'u' check fails (e.g. г).

Suggested fix

Remove the inner event.key check (the composable already filters the key), or compare event.code === 'KeyU'.

Additional context

Same pattern as the Files app hotkey issue reported in nextcloud/server#65056.

Ngôn ngữ chính
TypeScript
Star
10
Fork
5
Merge trung bình
4 ngày 22 giờ
Pull request đã merge (30 ngày)
14

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 nextcloud-libraries/nextcloud-upload

Tất cả issue của nextcloud-libraries/nextcloud-upload

Issue tương tự

Thêm issue về TypeScript

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.