From d96257555a1b3decff790af40339ce42b914861c Mon Sep 17 00:00:00 2001 From: Loric Brevet Date: Fri, 3 May 2024 05:06:21 +0200 Subject: [PATCH] overload: preserve layer during pending action --- src/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index b21d6df..624fdbd 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -626,7 +626,7 @@ static long process_descriptor(struct keyboard *kbd, uint8_t code, kbd->overload_start_time = time; activate_layer(kbd, code, idx); update_mods(kbd, -1, 0); - } else { + } else if (!kbd->pending_key.code) { deactivate_layer(kbd, idx); update_mods(kbd, -1, 0);