Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions google-meet-ptt.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @homepageURL https://josephgeis.dev/
// @description Makes Space into a Push-to-Talk button, makes Shift a PTT for the camera, and makes Enter a shortcut to the chat window.
// @license MIT
// @version 1.0.2
// @version 1.0.3
// @grant none
// @include https://meet.google.com/*
// ==/UserScript==
Expand Down Expand Up @@ -54,7 +54,7 @@ function cameraMute(e) {
}

function chatWindow(e) {
if (e.key != window.chatKey || chatHasFocus()) return;
if (e.key != window.chatKey || e.type === "keyup" || chatHasFocus()) return;

const chatMenuButton = document.querySelector("button[aria-label*='Chat']");
chatMenuButton.click();
Expand Down