mirror of
https://github.com/9001/copyparty.git
synced 2025-10-02 14:42:28 -06:00
fix browser hotkeys to be keyboard layout agnostic
Signed-off-by: Hendrik Wolff <hendrik.wolff@agdsn.me>
This commit is contained in:
parent
3e90abbf6f
commit
881d1eed30
|
@ -14528,7 +14528,7 @@ var fileman = (function () {
|
||||||
|
|
||||||
exm.onkeydown = exh.onkeydown = exd.onkeydown =
|
exm.onkeydown = exh.onkeydown = exd.onkeydown =
|
||||||
sh_k.onkeydown = sh_pw.onkeydown = function (e) {
|
sh_k.onkeydown = sh_pw.onkeydown = function (e) {
|
||||||
var kc = (e.code || e.key) + '';
|
var kc = (e.key || e.code) + '';
|
||||||
if (kc.endsWith('Enter'))
|
if (kc.endsWith('Enter'))
|
||||||
sh_apply.click();
|
sh_apply.click();
|
||||||
};
|
};
|
||||||
|
@ -14737,7 +14737,7 @@ var fileman = (function () {
|
||||||
(function (a) {
|
(function (a) {
|
||||||
f[a].inew.onkeydown = function (e) {
|
f[a].inew.onkeydown = function (e) {
|
||||||
rn_ok(a, true);
|
rn_ok(a, true);
|
||||||
var kc = (e.code || e.key) + '';
|
var kc = (e.key || e.code) + '';
|
||||||
if (kc.endsWith('Enter'))
|
if (kc.endsWith('Enter'))
|
||||||
return rn_apply();
|
return rn_apply();
|
||||||
};
|
};
|
||||||
|
@ -14835,7 +14835,7 @@ var fileman = (function () {
|
||||||
spresets();
|
spresets();
|
||||||
|
|
||||||
ire.onkeydown = ifmt.onkeydown = function (e) {
|
ire.onkeydown = ifmt.onkeydown = function (e) {
|
||||||
var k = (e.code || e.key) + '';
|
var k = (e.key || e.code) + '';
|
||||||
|
|
||||||
if (k == 'Escape' || k == 'Esc')
|
if (k == 'Escape' || k == 'Esc')
|
||||||
return rn_cancel();
|
return rn_cancel();
|
||||||
|
@ -15307,7 +15307,7 @@ var fileman = (function () {
|
||||||
(function (a) {
|
(function (a) {
|
||||||
var inew = ebi('rn_new_' + a);
|
var inew = ebi('rn_new_' + a);
|
||||||
inew.onkeydown = function (e) {
|
inew.onkeydown = function (e) {
|
||||||
if (((e.code || e.key) + '').endsWith('Enter'))
|
if (((e.key || e.code) + '').endsWith('Enter'))
|
||||||
return rn_apply();
|
return rn_apply();
|
||||||
};
|
};
|
||||||
inew.oninput = function (e) {
|
inew.oninput = function (e) {
|
||||||
|
@ -16493,7 +16493,7 @@ var ahotkeys = function (e) {
|
||||||
if (QS('#bbox-overlay.visible') || modal.busy)
|
if (QS('#bbox-overlay.visible') || modal.busy)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var k = (e.code || e.key) + '', pos = -1, n,
|
var k = (e.key || e.code) + '', pos = -1, n,
|
||||||
ae = document.activeElement,
|
ae = document.activeElement,
|
||||||
aet = ae && ae != document.body ? ae.nodeName.toLowerCase() : '';
|
aet = ae && ae != document.body ? ae.nodeName.toLowerCase() : '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue