Window/Document-level Keyboard Events in Tauri and Yew
I’m writing a GUI app in Rust, trying to get it working with Tauri’s tooling, using Yew to generate the actual user-facing code. I thought it would be easy to get a thing that notices when I hit a key, and do stuff with it. Pre-yew-0.19 you could do this with a KeyboardService, now it’s a whole thing with gloo.
The example they provide doesn’t indicate how to do this without binding it to a HTML element.
[Read More]