[Feature Request] Set shortcut to disabled / no keystroke.
The default shortcuts can be redefined, but I don't see any way to disable them, or set them to no keystroke at all. I'd like to be able to do that.
Hi!, https://stackoverflow.com/a/24764878 I added a simple button, and tested its functionality in the browser console.
//Button placed above the video description
document.getElementById("description").insertAdjacentHTML("beforebegin", "<button onclick='keys();' style='width: 50mm;
height: 10mm; background-color: #c00; border: none; color: #fff'> <b> DISABLE KEYS </b></button>");
//function that disables shortcuts
function keys() {
window.addEventListener("keypress",
function (e) {
e.stopPropagation();
}, true);
window.addEventListener("keydown",
function (e) {
e.stopPropagation();
}, true);
window.addEventListener("keyup",
function (e) {
e.stopPropagation();
}, true);
}
Feature already exists (At least now). To disable a shortcut, click on the shortcut and press empty.