Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mai1x9 opened this issue Jan 31, 2023 · 0 comments

Comments

@mai1x9
Copy link

mai1x9 commented Jan 31, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant