keyboardio / Chrysalis-Firmware-Bundle

Firmware sketches for boards supported by Chrysalis
GNU General Public License v2.0
32 stars 25 forks source link

SpaceCadet causes shift to work differently #32

Open Sinderella opened 1 year ago

Sinderella commented 1 year ago

I noticed that turning on SpaceCadet is causing the shift keys to work differently when hold to click. This happens on Model 100.

For example, if I want to select multiple rows in spreadsheets or to select multiple files depending on the context, I would click on something first and then hold the shift key while clicking on the other one to select the multiple items as a range.

This works perfectly fine when SpaceCadet is off. However, when it's on, it would just select the last one as if the shift was not held during the click.

algernon commented 1 year ago

When using SpaceCadet, there's a slight delay (~200ms) between pressing Shift and the keyboard reporting at as pressed, this is by design. The delay is used to figure out if the key was tapped, or if it is held. During this small delay, Shift isn't active.

Is the problem reproducible if you hold shift for a little longer before clicking with the mouse?

If it is, which operating system, and which application are you using where this happens? I tried reproducing it on Linux + LibreOffice, and unless I clicked with the mouse pretty much at the same time as pressing a SpaceCadet shift, I was unable to reproduce the problem, shift+click functioned as a select just fine.

Sinderella commented 1 year ago

I tried holding it for 5 seconds just to be sure that it's not the delay. By the time I release the button, I got one the parentheses.

I am on macOS 12.5.1 and it happens on every application I've used so far. One of the easy ones I can replicate is any web browser using Google Sheets.

Steps to reproduce:

  1. Click on a cell
  2. Hold a shift button for 5 seconds
  3. Click on another cell, the cell would be selected and '(' would be inserted there.

I tried to record the screen with keypresses, but I just realised it wouldn't work. lol Not sure if there's other way I can give you more information.

algernon commented 1 year ago

This should be enough, I'll try reproducing on macOS + google sheets, and see where that leads. Thanks!