mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
change modal ok/cancel focus with left/right keys
This commit is contained in:
parent
bfc6c53cc5
commit
63a5336f31
|
@ -1186,6 +1186,9 @@ var modal = (function () {
|
||||||
return ok();
|
return ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((k == 'ArrowLeft' || k == 'ArrowRight') && eng && (ae == eok || ae == eng))
|
||||||
|
return (ae == eok ? eng : eok).focus() || ev(e);
|
||||||
|
|
||||||
if (k == 'Escape')
|
if (k == 'Escape')
|
||||||
return ng();
|
return ng();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue