sshkeyboard icon indicating copy to clipboard operation
sshkeyboard copied to clipboard

This library does not detect keystrokes entered all applications except Command Prompt

Open mai1x9 opened this issue 2 years ago • 0 comments

from sshkeyboard import listen_keyboard

def press(key):
    print(f"'{key}' pressed")

def release(key):
    print(f"'{key}' released")

listen_keyboard(
    on_press=press,
    on_release=release,
)

When above code runs from command prompt, only keystrokes entered on command prompt are detected. Keystrokes typed on any other applications like chrome, vscode etc.. are not detected.

mai1x9 avatar Jan 31 '23 07:01 mai1x9