We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f44bd commit aa6f589Copy full SHA for aa6f589
src/js/gui.js
@@ -392,8 +392,8 @@ class GuiControl {
392
// Add Enter key support for single-choice dialog
393
$(document).off("keydown.informationDialog");
394
$(document).on("keydown.informationDialog", (e) => {
395
- // Only trigger if Enter key is pressed and target is not an input/textarea
396
- if (e.which === 13 && !$(e.target).is("input, textarea")) {
+ // Only trigger if Enter is pressed, dialog is open, and target is not an input/textarea
+ if (e.which === 13 && dialog[0].open && !$(e.target).is("input, textarea")) {
397
e.preventDefault();
398
confirmAction();
399
}
0 commit comments