Starting a reply doesn't immediately capture keystrokes, leading to accidental shortcuts

Starting a reply to an email thread (e.g. by using the ‘r’ or ‘a’ Gmail shortcuts) doesn’t seem to immediately capture the keyboard – if I start typing within a few ms I wind up accidentally triggering keyboard shortcuts on other mails in my Inbox.

(Originally posted by axfelix on GitHub.)