From 751c0723dc2f2b09c3f96eca54363efe7b795e3e Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Sun, 17 Sep 2023 19:41:17 +0900 Subject: [PATCH] skill issue: dont hide draggables on every keydown --- public/scripts/RossAscends-mods.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index 205c35aa0..f5492e17b 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -1122,13 +1122,14 @@ export function initRossMods() { $("#rightNavDrawerIcon").trigger('click'); return } + if ($(".draggable").is(":visible")) { + // Remove the first matched element + $('.draggable:first').remove(); + return; + } } - if ($(".draggable").is(":visible")) { - // Remove the first matched element - $('.draggable:first').remove(); - return; - } + if (event.ctrlKey && /^[1-9]$/.test(event.key)) {