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

[Bug] NOOP keys kill combos #19446

Open
2 tasks
xJayMorex opened this issue Dec 30, 2022 · 2 comments
Open
2 tasks

[Bug] NOOP keys kill combos #19446

xJayMorex opened this issue Dec 30, 2022 · 2 comments

Comments

@xJayMorex
Copy link

xJayMorex commented Dec 30, 2022

Describe the Bug

The issue is that whenever a NOOP key is pressed down along with a valid combo, the combo doesn't fire.

Use case:

I am using an ortholinear split keyboard with left shift + right shift combo as caps lock toggle. The right shift is 2U with a POS keycap so the underlaying switches are KC_RSFT and XXXXXXX (using the right switch as a stabilizer because the pcb doesn't support 2U key in that position).

Expected behavior:

NOOP shouldn't interfere with combos because by definition the key should be ignored.

Notes:

I tried the combo with 1U keycaps (meaning the NOOP key is not pressed) and it works fine, so the problem is indeed the NOOP interfering with combos.

Keyboard Used

keebio/viterbi/rev2

Link to product page (if applicable)

https://keeb.io/products/viterbi-keyboard-pcbs-5x7-70-split-ortholinear

Operating System

Microsoft Windows 11

qmk doctor Output

No response

Is AutoHotKey / Karabiner installed

  • AutoHotKey (Windows)
  • Karabiner (macOS)

Other keyboard-related software installed

No response

Additional Context

No response

@xJayMorex
Copy link
Author

xJayMorex commented Dec 30, 2022

Proposed solution:

bool process_combo(uint16_t keycode, keyrecord_t *record) {
	// ignore noop keys during combos
	if (keycode == KC_NO) {
		return true;
	}
	(...)
}

@johnwilmes
Copy link

This is a special case of #15911

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants