From dfaffa649979d062bbdd639aba70816031f2f3c0 Mon Sep 17 00:00:00 2001 From: Ponchale Date: Mon, 25 Mar 2024 03:51:25 -0500 Subject: [PATCH] [MB] CSK | Make do not use disable atrribute instead of remove() --- .../browser/base/content/browser-custom-keyboard-shortcut.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/floorp/browser/base/content/browser-custom-keyboard-shortcut.js b/floorp/browser/base/content/browser-custom-keyboard-shortcut.js index 6b50aff93e2..cc7fd015e15 100644 --- a/floorp/browser/base/content/browser-custom-keyboard-shortcut.js +++ b/floorp/browser/base/content/browser-custom-keyboard-shortcut.js @@ -115,14 +115,14 @@ const buildShortCutkeyFunctions = { disableAllCustomKeyShortcutElemets() { let keyElems = document.querySelectorAll(".floorpCustomShortcutKey"); for (let keyElem of keyElems) { - keyElem.disabled = true; + keyElem.remove(); } }, enableAllCustomKeyShortcutElemets() { let keyElems = document.querySelectorAll(".floorpCustomShortcutKey"); for (let keyElem of keyElems) { - keyElem.disabled = false; + keyElem.removeAttribute("disabled") } },