Equibop Flag For WebKeybinds

This commit is contained in:
thororen1234 2024-08-20 11:10:58 -04:00
parent 6aa0b24cbc
commit a02be6c097

View file

@ -35,7 +35,7 @@ export default definePlugin({
if (hasCtrl) switch (e.key) { if (hasCtrl) switch (e.key) {
case "t": case "t":
case "T": case "T":
if (!IS_VESKTOP) return; if (!IS_VESKTOP || !IS_EQUIBOP) return;
e.preventDefault(); e.preventDefault();
if (e.shiftKey) { if (e.shiftKey) {
if (SelectedGuildStore.getGuildId()) NavigationRouter.transitionToGuild("@me"); if (SelectedGuildStore.getGuildId()) NavigationRouter.transitionToGuild("@me");
@ -49,7 +49,7 @@ export default definePlugin({
} }
break; break;
case "Tab": case "Tab":
if (!IS_VESKTOP) return; if (!IS_VESKTOP || !IS_EQUIBOP) return;
const handler = e.shiftKey ? KeyBinds.SERVER_PREV : KeyBinds.SERVER_NEXT; const handler = e.shiftKey ? KeyBinds.SERVER_PREV : KeyBinds.SERVER_NEXT;
handler.action(e); handler.action(e);
break; break;