Cannot use rdev to capture events in the application window. #7752
|
I am trying to capture keyboard events in the app window using rdev crate, but I am not seeing debugging output for keyboard events inside the app. Debugging output for those keyboard events can be seen elsewhere, on the desktop, in the browser, and even in the app developer's tools. What should I do to get rdev to capture keyboard events in my application, or what data should I provide? |
Replies: 2 comments 6 replies
|
I assume you're on Windows? And with "events can be seen elsewhere" you're talking about which window has the focus right? In this case i think you need to use this api https://docs.rs/tauri/latest/tauri/struct.Builder.html#method.device_event_filter to change the filter (not sure which filter you need, so you'll have to try them yourself). |
|
@NeserCode which version of rdev are you using? Note: if I run the listener without |
I assume you're on Windows? And with "events can be seen elsewhere" you're talking about which window has the focus right? In this case i think you need to use this api https://docs.rs/tauri/latest/tauri/struct.Builder.html#method.device_event_filter to change the filter (not sure which filter you need, so you'll have to try them yourself).