From 4642ceb4199628c5607d55dd3a7f2abfa4a736cf Mon Sep 17 00:00:00 2001 From: tomasvana10 Date: Fri, 10 May 2024 21:26:56 +1000 Subject: [PATCH] Fix alert not showing up for compound input --- crossword_puzzle/cword_webapp/static/interaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossword_puzzle/cword_webapp/static/interaction.js b/crossword_puzzle/cword_webapp/static/interaction.js index afd2807ca..163251401 100644 --- a/crossword_puzzle/cword_webapp/static/interaction.js +++ b/crossword_puzzle/cword_webapp/static/interaction.js @@ -105,7 +105,7 @@ class Interaction { let inputValue = event.key; // Handle the setting of a compound input element when pressing [Shift + 1] - if (inputValue === "!" && event.shiftKey && this.cellCoords !== null) { + if (inputValue === "!" && event.shiftKey) { event.preventDefault(); return this.handleSetCompoundInput(); }