adafruit / adafruit/Adafruit_CircuitPython_HID

Double key in Discord shortcuts

Open
#96 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
464
Forks
121
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with adafruit_hid using kbd.send(Keycode.R) on macOS, then compare that path with the physical keyboard behavior. Trace the adafruit_hid and builtin usb_hid paths mentioned in the report; done means Discord records one R rather than "R + R" for every tested key.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.