Is it possible to listen for Keyboard input via a Python plugin?
For example, if I press the ‘d’ key, then I want the script to trigger a specific action.
Also, is it possible to get the currently set hotkeys of the Krita instance?
I tried using
from pynput import keyboard, and assigning
listener = keyboard.Listener(listenerFunc=listenerFunc), but whenever I run
listener.start(), Krita crashes and I have to force close it.