Skip to content

Commit

Permalink
ui: make hotkey-help less eager to show itself
Browse files Browse the repository at this point in the history
would appear when typing `?` into textboxes
  • Loading branch information
9001 committed Oct 30, 2024
1 parent 5718caa commit 71d9e01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions copyparty/web/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 71d9e01

Please sign in to comment.