VERSION 1

KEYSWITCH X     0 0
KEYSWITCH TD_0  1 0
KEYSWITCH LL_1  2 0

# ==============================================================================
NAME TapDance issue 980 no overlap

RUN 5 ms
PRESS TD_0
RUN 5 ms
RELEASE TD_0
RUN 10 ms

PRESS TD_0
RUN 5 ms
RELEASE TD_0
RUN 5 ms

PRESS X
RUN 1 cycle
EXPECT keyboard-report Key_Y # The key should be mapped from layer 1 (Y), not layer 0 (X)
RUN 5 ms

RELEASE X
RUN 1 cycle
EXPECT keyboard-report empty # The report should be empty
RUN 5 ms

PRESS LL_1
RUN 1 cycle
RELEASE LL_1
RUN 1 cycle

# ==============================================================================
NAME TapDance issue 980 rollover

RUN 5 ms

PRESS TD_0
RUN 5 ms
RELEASE TD_0
RUN 10 ms

PRESS TD_0
RUN 5 ms

PRESS X
RUN 1 cycle
EXPECT keyboard-report Key_Y # The key should be mapped from layer 1 (Y), not layer 0 (X)
RUN 5 ms

RELEASE TD_0
RUN 5 ms

RELEASE X
RUN 1 cycle
EXPECT keyboard-report empty # The report should be empty
RUN 5 ms

PRESS LL_1
RUN 1 cycle
RELEASE LL_1
RUN 1 cycle