Skip to content

Commit 9d73e75

Browse files
committed
macro: Eagerly restore modifiers post execution (fixes #947)
1 parent 6b4f9f1 commit 9d73e75

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/keyboard.c

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ static long execute_macro(struct keyboard *kbd, int dl, const struct macro *macr
174174
time = macro_execute(kbd->output.send_key, macro, kbd->config.macro_sequence_timeout);
175175
}
176176

177+
update_mods(kbd, -1, 0);
177178
return time;
178179
}
179180

t/overload-nested2.t

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ meta up
99
control up
1010
\ down
1111
\ up
12+
control down
13+
control up

0 commit comments

Comments
 (0)