Skip to content

Commit

Permalink
#9 Post-merge hotfix, switching alert dialog's keyup listener to a ke…
Browse files Browse the repository at this point in the history
…ydown listener to prevent accidentally catching key presses from prior buttons.
  • Loading branch information
FrenjaminBanklin committed Jul 24, 2019
1 parent 8d665ad commit 0ab7b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Namespace('Crossword').Engine = do ->
$('#checkBtn').click ->
_showAlert "Are you sure you're done?", 'Yep, Submit', 'No, Cancel', _submitAnswers

$('#alertbox').keyup (e) ->
$('#alertbox').keydown (e) ->
switch e.keyCode
when 13 #enter
$('#okbtn').click()
Expand Down

0 comments on commit 0ab7b89

Please sign in to comment.