python-sounddevice icon indicating copy to clipboard operation
python-sounddevice copied to clipboard

how can I stop keyboard.Listener from grabbing all keyboard input even when it doesn't hold focus?

Open pootle opened this issue 1 year ago • 1 comments

I'm running the listener like this: with keyboard.Listener(on_press=on_press, on_release=on_release, suppress=True) as listener: but it grabs all keyboard input, blocking out other apps, until the with block ends. 'I'm doing a push to talk' type of app, and I need suppress True to stop echoing spacebar autorepeating.

Is there a way to allow other apps to use the keyboard when they are given focus?

Im running on Ubuntu with sounddevice version 0.4.6

pootle avatar Apr 20 '23 07:04 pootle

keyboard.Listener is not part of the sounddevice module.

You should probably ask at the issue tracker of the keyboard module?

mgeier avatar Apr 28 '23 20:04 mgeier