mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
stop eating browser hotkeys
This commit is contained in:
parent
126ecc55c3
commit
7c10f81c92
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue