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

Double key in Discord shortcuts #96

Open
Neradoc opened this issue Mar 23, 2022 · 2 comments
Open

Double key in Discord shortcuts #96

Neradoc opened this issue Mar 23, 2022 · 2 comments

Comments

@Neradoc
Copy link
Contributor

Neradoc commented Mar 23, 2022

There is a weird effect that happens in Discord shortcuts when sending a key. (Seen on mac).
A simple kbd.send(Keycode.R) code will cause the shortcut to be recorded as "R + R". Pressing the key with the keyboard gets a normal "R". (With any key tested).
It might be an issue with discord, but the discrepancy between the keyboard and adafruit_hid makes me wonder what is different in CP to cause that. It might very well be a builtin usb_hid issue too.

  • adafruit_hid

bad

  • keyboard

good

@dhalbert
Copy link
Collaborator

dhalbert commented Mar 23, 2022

If you do press/release, do you see that too? How about press/delay/release?

Maybe make sure that kbd.send() is only being called once.

@Neradoc
Copy link
Contributor Author

Neradoc commented Mar 23, 2022

Yes, no matter the delay between press and release.
Note that "R + R" seems to be meaning "simultaneously R and R", which is weird. Mashing 2 keys on the keyboard I manage to get "R + H + R + H" (same as kbd.send(Keycode.R, Keycode.H)), but I can't get "R + R" on the keyboard.

Overall it seems like a mac-discord only thing, but I'm really puzzled how that happens...

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

2 participants