mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
ui: make hotkey-help less eager to show itself
would appear when typing `?` into textboxes
This commit is contained in:
parent
5718caa957
commit
71d9e010d9
|
@ -6239,9 +6239,6 @@ var ahotkeys = function (e) {
|
|||
ae = document.activeElement,
|
||||
aet = ae && ae != document.body ? ae.nodeName.toLowerCase() : '';
|
||||
|
||||
if (e.key == '?')
|
||||
return hkhelp();
|
||||
|
||||
if (k == 'Escape' || k == 'Esc') {
|
||||
ae && ae.blur();
|
||||
tt.hide();
|
||||
|
@ -6322,6 +6319,9 @@ var ahotkeys = function (e) {
|
|||
if (aet && aet != 'a' && aet != 'tr' && aet != 'td' && aet != 'div' && aet != 'pre')
|
||||
return;
|
||||
|
||||
if (e.key == '?')
|
||||
return hkhelp();
|
||||
|
||||
if (ctrl(e)) {
|
||||
if (k == 'KeyX' || k == 'x')
|
||||
return fileman.cut();
|
||||
|
|
Loading…
Reference in a new issue