mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -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();
|
||||
}
|
||||
|
||||
if ((k == 'ArrowLeft' || k == 'ArrowRight') && eng && (ae == eok || ae == eng))
|
||||
return (ae == eok ? eng : eok).focus() || ev(e);
|
||||
|
||||
if (k == 'Escape')
|
||||
return ng();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue