Add rollover test for PrefixLayer plugin

This test verifies that PrefixLayer doesn't clear held non-modifier keys from
the report before sending the prefix sequence.

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1199/head
Michael Richters 2 years ago
parent f10d5833f3
commit b60ef9f0ab
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -233,3 +233,40 @@ RUN 4 ms
RELEASE PREFIX_B
RUN 1 cycle
EXPECT no keyboard-report # no report after releasing PREFIX_B
# ==============================================================================
NAME Prefix layer rollover from letter
RUN 4 ms
PRESS K
RUN 1 cycle
EXPECT keyboard-report Key_K # press K
RUN 4 ms
PRESS PREFIX_B
RUN 1 cycle
EXPECT no keyboard-report # no report after pressing PREFIX_B
RUN 4 ms
PRESS H
RUN 1 cycle
EXPECT keyboard-report Key_K Key_LCtrl # hold K and press Ctrl
EXPECT keyboard-report Key_K Key_LCtrl Key_B # press B, hold K & Ctrl
EXPECT keyboard-report Key_K Key_LCtrl # release B, hold K & Ctrl
EXPECT keyboard-report Key_K # release Ctrl
EXPECT keyboard-report Key_K Key_H # hold K, press H
RUN 4 ms
RELEASE K
RUN 1 cycle
EXPECT keyboard-report Key_H # release K
RUN 4 ms
RELEASE PREFIX_B
RUN 1 cycle
EXPECT no keyboard-report # no report after releasing PREFIX_B
RUN 4 ms
RELEASE H
RUN 1 cycle
EXPECT keyboard-report empty # release H

Loading…
Cancel
Save