diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index ff63a4f7..91a2cb24 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -466,9 +466,6 @@ "theKey": { "message": "The key" }, - "keyAlreadyUsedByYouTube": { - "message": "is already used by youtube. Please select another key." - }, "keyAlreadyUsed": { "message": "is bound to another action. Please select another key." }, diff --git a/src/options.ts b/src/options.ts index a0d3ccd9..5e184505 100644 --- a/src/options.ts +++ b/src/options.ts @@ -362,15 +362,6 @@ function keybindKeyPressed(element: HTMLElement, e: KeyboardEvent) { let button: HTMLElement = element.querySelector(".trigger-button"); let option = element.getAttribute("sync-option"); - // Don't allow keys which are already listened for by youtube - let restrictedKeys = "1234567890,.jklftcibmJKLFTCIBMNP/<> -+"; - if (restrictedKeys.indexOf(key) !== -1 ) { - closeKeybindOption(element, button); - - alert(chrome.i18n.getMessage("theKey") + " " + key + " " + chrome.i18n.getMessage("keyAlreadyUsedByYouTube")); - return; - } - // Make sure keybind isn't used by the other listener // TODO: If other keybindings are going to be added, we need a better way to find the other keys used. let otherKeybind = (option === "startSponsorKeybind") ? Config.config['submitKeybind'] : Config.config['startSponsorKeybind'];