@rbernon
I have pushed multiple versions together. The purpose of v4 is only to provide a clean diff from v3 for easier review, before the rebase in v5 and then an additional change in v6.
v4: * Skip rctrl_scan test on Korean layouts * Added numpad scan tests along with required improvements to the way we clear keyboard state for each test. Note that some expectations in these tests are TODO because winex11 doesn't handle these correctly at the moment (whereas KBDTABLES/winewayland pass cleanly).
v5: Rebase on latest master (no functionality diff from v4), so the tests can actually pass (due to the changes in !5652).
v6: Only wait for and clean events if we actually emit events during the clearing of keyboard state.
Testbot run for v6: https://testbot.winehq.org/JobDetails.pl?Key=145680