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,
|
ae = document.activeElement,
|
||||||
aet = ae && ae != document.body ? ae.nodeName.toLowerCase() : '';
|
aet = ae && ae != document.body ? ae.nodeName.toLowerCase() : '';
|
||||||
|
|
||||||
if (e.key == '?')
|
|
||||||
return hkhelp();
|
|
||||||
|
|
||||||
if (k == 'Escape' || k == 'Esc') {
|
if (k == 'Escape' || k == 'Esc') {
|
||||||
ae && ae.blur();
|
ae && ae.blur();
|
||||||
tt.hide();
|
tt.hide();
|
||||||
|
@ -6322,6 +6319,9 @@ var ahotkeys = function (e) {
|
||||||
if (aet && aet != 'a' && aet != 'tr' && aet != 'td' && aet != 'div' && aet != 'pre')
|
if (aet && aet != 'a' && aet != 'tr' && aet != 'td' && aet != 'div' && aet != 'pre')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (e.key == '?')
|
||||||
|
return hkhelp();
|
||||||
|
|
||||||
if (ctrl(e)) {
|
if (ctrl(e)) {
|
||||||
if (k == 'KeyX' || k == 'x')
|
if (k == 'KeyX' || k == 'x')
|
||||||
return fileman.cut();
|
return fileman.cut();
|
||||||
|
|
Loading…
Reference in a new issue