From 904bb4a1bb247dd4f60bb60d3c2d63b317f67352 Mon Sep 17 00:00:00 2001 From: tobeh Date: Fri, 15 Dec 2023 01:25:05 +0100 Subject: [PATCH 1/2] disable straight mode when chatting --- features/uiTweaks.js | 4 +++- manifest.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/features/uiTweaks.js b/features/uiTweaks.js index b79ea7f..4694c02 100644 --- a/features/uiTweaks.js +++ b/features/uiTweaks.js @@ -625,7 +625,8 @@ const uiTweaks = { ctx.lineWidth = size; ctx.stroke(); } - } + }; + const chatInput = QS(".chat-container input"); let straight = false; let lastRelease = 0; let snap = false; @@ -652,6 +653,7 @@ const uiTweaks = { } // listen for shift down document.addEventListener("keydown", (event) => { + if (document.activeElement == chatInput) return; let state = straight; straight = straight || event.which === 16; if (straight && !state) preview.use(); diff --git a/manifest.json b/manifest.json index 638cf18..e970144 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Skribbl Typo", "description": "The most complete toolbox for skribbl.io with namefinder & Discord integration", - "version": "25.0.5", + "version": "25.0.6", "author": "tobeh", "icons": { "256": "res/icon/256MaxFit.png", From bd28a2864efe35e8b9788b4e8603773327c42d4b Mon Sep 17 00:00:00 2001 From: Continuous Integration Date: Fri, 15 Dec 2023 00:25:27 +0000 Subject: [PATCH 2/2] Userscript Build Artifacts --- skribbltypo.user.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/skribbltypo.user.js b/skribbltypo.user.js index 4cb39c5..d27d09f 100644 --- a/skribbltypo.user.js +++ b/skribbltypo.user.js @@ -5,7 +5,7 @@ // @author tobeh#7437 // @description Userscript version of skribbltypo - the most advanced toolbox for skribbl.io // @icon64 https://rawcdn.githack.com/toobeeh/skribbltypo/master/res/icon/128MaxFit.png -// @version 25.0.5.170239597 +// @version 25.0.6.170259992 // @updateURL https://raw.githubusercontent.com/toobeeh/skribbltypo/master/skribbltypo.user.js // @grant none // @match https://skribbl.io/* @@ -24,7 +24,7 @@ const chrome = { return "https://rawcdn.githack.com/toobeeh/skribbltypo/master/" + url; }, getManifest: () => { - return {version: "25.0.5 usrsc"}; + return {version: "25.0.6 usrsc"}; }, onMessage: { addListener: (callback) => { @@ -6888,7 +6888,8 @@ const uiTweaks = { ctx.lineWidth = size; ctx.stroke(); } - } + }; + const chatInput = QS(".chat-container input"); let straight = false; let lastRelease = 0; let snap = false; @@ -6915,6 +6916,7 @@ const uiTweaks = { } // listen for shift down document.addEventListener("keydown", (event) => { + if (document.activeElement == chatInput) return; let state = straight; straight = straight || event.which === 16; if (straight && !state) preview.use();