VSCode for Linux should rely on XKB keylabels, not rely on keycodes
Chưa có ai nhận issue này.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The [Backspace] key and right Super or Ctrl key are best swapped. VSCode cannot do this.
The setkeycodes command cannot affect >1 keyboard and is reported to be ineffective on USB keyboards. As in microsoft/vscode#24690, keys are currently remapped in /usr/share/X11/xkb/keycodes/evdev, where keylabel assignments to X keycodes (Linux kernel keycodes + 8) can be effectively changed.
While some parts of VSCode—notably the settings editor—do respect these remappings, VSCode’s text editor is the only application that does not, at least not properly:
- The physical right Control key keeps acting as ctrl instead of acting as Backspace;
- The physical Backspace key keeps acting as Backspace, and additionally it acts as Control, that it is remapped to, resulting in
deleteWordLeft.
VSCode key bindings are unable to fix all of this either, only able to change deleteWordLeft to deleteLeft.
Version: 1.44.2
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T17:50:03.709Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 4.13.0-36-generic
Steps to Reproduce:
- Open
/usr/share/X11/xkb/keycodes/evdev - Replace:
<BKSP> = 22;
<RCTL> = 105;
with:
<RCTL> = 22; // was <BKSP>
<BKSP> = 105; // was <RCTL> - Log out, open new session;
- Check key behavior in Chrome;
- Check key behavior in VSCode.
Does this issue occur when all extensions are disabled?
Yes it is extensions agnostic.
- Ngôn ngữ chính
- C++
- Star
- 152
- Fork
- 43
- Merge trung bình
- 19 giờ 38 phút
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/node-native-keymap
-
Support Electron 32 Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/node-native-keymap#60 · 3 bình luận ·
-
Error when building on macOS 12 Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
microsoft/node-native-keymap#54 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Can't build with electron Đang mởinfo-needed
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
microsoft/node-native-keymap#43 · 7 bình luận ·
-
Unable to Install on CentOS 8 Đang mởhelp wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
Tất cả issue của microsoft/node-native-keymap
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
AXERA-TECH/ax-llm#77 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
games-on-whales/wolf#509 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
bug-unconfirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
NVIDIA/cuda-samples#453 ·