Skip to content

Commit

Permalink
Avoid re-appearance of ajax combobox dropdown on tab, enter, esc
Browse files Browse the repository at this point in the history
  • Loading branch information
plocket committed Feb 26, 2024
1 parent 08c984b commit 47b58ce
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,12 @@

case 9: // tab
case 13: // enter
if (e) {
e.stopPropagation();
e.preventDefault();
}
daFetchAjaxTimeoutFetchAfter = false;
daFetchAcceptIncoming = false;
if (!this.shown) {
return;
}
Expand All @@ -638,6 +644,12 @@
break;

case 27: // escape
if (e) {
e.stopPropagation();
e.preventDefault();
}
daFetchAjaxTimeoutFetchAfter = false;
daFetchAcceptIncoming = false;
if (!this.shown) {
return;
}
Expand Down

0 comments on commit 47b58ce

Please sign in to comment.