Clear keys with a middle click - #153
Open
Glitchy-Sheep wants to merge 3 commits into
Open
Conversation
Middle click on a layout key or encoder slot writes KC_NO directly, without opening the picker. Clicks made while another HID write is in flight are queued and applied in order, so rapid bulk clearing does not lose clicks. A clear supersedes older deferred edits of the same key (parked picker result, pending handed swap) and vice versa. The bottom hint bar and the onboarding tour mention the new gesture.
A whole-layer write (paste, fill, undo) is a newer user action than a middle-click clear still waiting for the HID handle. Drop queued clears for that layer so a stale clear cannot land on a key the layer write just set.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
❓ Problem
Clearing one key takes three steps:
None.Emptying a group of keys means repeating that for every key, and the picker reopens each time.
This hurts most when reworking a layer for new functionality.
It's a lot of actions just to clean everything up (it could be a better UX for this).
Middle click had no meaning anywhere in the app, so it was free to use for this.
✅ Fix (what have I done)
None(KC_NO) to the device without opening the picker.Middle click to clear this keywhile a key with a binding is hovered, and the onboarding tour text mentions the gesture.🎦 Demo
I tested it out on my K:04, there is how it looks like (before / after):