microsoft / jacdac

Device and service catalogs for Jacdac.
https://aka.ms/jacdac
Creative Commons Attribution 4.0 International
66 stars 25 forks source link

HID Keyboard - cannot hold control or shift key down #1259

Closed minki710 closed 1 year ago

minki710 commented 1 year ago

I am trying to something like sticky keys, to be able to use a button to hold down shift, and then allow using the mouse to select multiple objects, such as cells in Excel or multiple images in Powerpoint.

image
pelikhan commented 1 year ago

Can you describe your hardware setup?

minki710 commented 1 year ago

we are using the Jacdac HID Brain with the STM32F chip, and then a standard Jacdac button by Kittenbot.

We have been able to get every other key / combination working except this and the space key posted separately.

Thanks!!!

Jacdac_HID_button

pelikhan commented 1 year ago

The issue is probably here, we don't send empty command (silly)

https://github.com/microsoft/pxt-jacdac/blob/master/hid-keyboard/client.ts#L306

pelikhan commented 1 year ago

Try pxt-jacdac v1.8.41

minki710 commented 1 year ago

it works!!! thank you!