diff --git a/src/player.coffee b/src/player.coffee index 2eadcb6..ca2d781 100644 --- a/src/player.coffee +++ b/src/player.coffee @@ -500,7 +500,6 @@ Namespace('Crossword').Engine = do -> if preventDefault then keyEvent.preventDefault() _cluesFocused = (e) -> - console.log 'clue list focused' e.preventDefault() _dom('clue-reader').innerHTML = '' _updateClueReader() @@ -942,11 +941,13 @@ Namespace('Crossword').Engine = do -> ab.find('.submit').unbind('click').click -> _hideAlert() action() + ab.focus() # hide it _hideAlert = -> _dom('alertbox').classList.remove 'show' _dom('backgroundcover').classList.remove 'show' + _dom('clues').focus() # called after confirm dialog _getHint = (index) -> diff --git a/src/player.html b/src/player.html index 6d38a50..c86da18 100644 --- a/src/player.html +++ b/src/player.html @@ -31,10 +31,11 @@ aria-label='Use the Tab key to select the list of clues.'>
-