Fix possible race condition when switching keyboards while there are pending messages.
1 file changed