stop eating browser hotkeys

This commit is contained in:
ed 2021-04-11 20:01:03 +02:00
parent 126ecc55c3
commit 7c10f81c92

View file

@ -648,6 +648,9 @@ document.onkeydown = function (e) {
if (!document.activeElement || document.activeElement != document.body && document.activeElement.nodeName.toLowerCase() != 'a')
return;
if (e.ctrlKey || e.altKey || e.shiftKey || e.metaKey || e.isComposing)
return;
var k = (e.code + ''), pos = -1;
if (k.indexOf('Digit') === 0)
pos = parseInt(k.slice(-1)) * 0.1;