You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In wasm-bindgen 0.2.41, KeyboardEvent::key() and ::code() always return the empty string. In 0.2.40 they worked fine. I'm not sure whether this bug is in wasm-bindgen, web-sys, or another related crate.
The arrow keys should move the diamond in the middle.
Actual Behavior
The arrow keys do nothing. If logging of pressed_keys is added to Demo::handle_pressed_keys, it shows that the keys are always empty strings (they should be "ArrowLeft" or similar).
Additional Context
I can only repro this in Firefox, not Chrome. I'm using Linux; I don't know if it happens on other platforms.
If you downgrade the wasm-bindgen dependency to 0.2.40 (which also requires downgrading some dependencies in webgl-wrapper and webgl-gui) the arrow keys work.
The text was updated successfully, but these errors were encountered:
The last write accidentally wasn't accounted for in the returned length
of the string and we unfortunately don't have any test coverage of
`encodeInto` since it requires Firefox nightly right now (and doesn't
work in Node yet).
Closesrustwasm#1436
Describe the Bug
In wasm-bindgen 0.2.41,
KeyboardEvent::key()
and::code()
always return the empty string. In 0.2.40 they worked fine. I'm not sure whether this bug is in wasm-bindgen, web-sys, or another related crate.Steps to Reproduce
Expected Behavior
The arrow keys should move the diamond in the middle.
Actual Behavior
The arrow keys do nothing. If logging of
pressed_keys
is added toDemo::handle_pressed_keys
, it shows that the keys are always empty strings (they should be "ArrowLeft" or similar).Additional Context
I can only repro this in Firefox, not Chrome. I'm using Linux; I don't know if it happens on other platforms.
If you downgrade the wasm-bindgen dependency to 0.2.40 (which also requires downgrading some dependencies in webgl-wrapper and webgl-gui) the arrow keys work.
The text was updated successfully, but these errors were encountered: