Hey! Thanks for putting this extension together. I've been testing it out some today and really like the overall experience.
I encountered a bug where changing applications or tabs and coming back to the Meet causes the keyup
event to trigger for other keys. For example, I configured my hot key to the option key (โฅ on a Mac), which maps to Alt for javascript event codes. When I switch to another application from Chrome, and then come back, I get muted.
From adding some console.log statements, and trying to figure out what's going on, I think the problem is that matchKeyup
in src/js/hotkey.js is matching on non-configured keys. From the above example, I logged that this.keys.altKey
is true, but it seems like the keyup event from the command key (โ on a Mac; maps to the MetaKey) has event.altKey
set to false, which causes matchKeyup
to return true.