Adafruit_CircuitPython_HID icon indicating copy to clipboard operation
Adafruit_CircuitPython_HID copied to clipboard

Double key in Discord shortcuts

Open Neradoc opened this issue 2 years ago • 2 comments

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

Neradoc avatar Mar 23 '22 21:03 Neradoc

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.

dhalbert avatar Mar 23 '22 21:03 dhalbert

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...

Neradoc avatar Mar 23 '22 22:03 Neradoc