Is there a way to listen for key inputs that aren't global in Tauri? Everything I have found, aside from rdev listens for global key inputs and that is not what I want as they consume the events even when the app is not focussed. rdev seems to be recommended however it just doesn't work. It recieves mouse events when the Tauri app is focussed but no keyboard events. It's only once you focus a different application that rdev recieves keyboard events.
Is there any cross-platform way to listen for keyboard events only while the window is focussed? I find it odd that everything is global seeing as almost all the programs I have ever used do not listen globally and don't consume the key events so I find it odd that it's such a common use case within Tauri.