amethyst / amethyst/bracket-lib

Keyboard layout not working for wasm target

Đang mở
#177 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Rust
Star
1.7k
Fork
126
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'm trying to pick up some basics of wasm, by following along with the Roguelike tutorial.

I ran into a weird issue when trying to get movement to work using `hjkl` (instead of the arrow keys). The issue is that I use a Colemak layout (via `setxkbmap` on Linux) so these keys are not in their original positions. The keys work as I expect when running locally through `cargo run`, but when running via a local web server and the `wasm32-unknown-unknown` target, the Colemak layout is somehow disabled and the keys are in their QWERTY positions.

Any idea where I can start looking for a solution to this? I was expecting the Colemak layout to work in my wasm projects as in the rest of my system. Maybe the problem lies at a lower level than `bracket-lib`?

(The full `setxkbmap` command I use is: `setxkbmap -model pc105 -layout us,us -variant colemak,altgr-intl -option -option "grp:shifts_toggle,ctrl:nocaps,terminate:ctrl_alt_bksp"`)

Thanks for the nice library and tutorial!

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

Đánh giá

Issue này chưa được đánh giá.

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.