Skip to content

Commit

Permalink
Fix regression where we no longer allowed tabbing through completed g…
Browse files Browse the repository at this point in the history
…rids
  • Loading branch information
mdirolf committed Feb 6, 2024
1 parent d5fef73 commit 923f219
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/reducers/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -815,10 +815,12 @@ export function gridInterfaceReducer<T extends GridInterfaceState>(
if (isKeypressAction(action)) {
const key = action.key;
// Resume on Esc, but only during midgame pause
if (isPuzzleState(state) && !state.currentTimeWindowStart) {
if (state.bankedSeconds === 0) {
return state;
}
if (
isPuzzleState(state) &&
!state.success &&
!state.currentTimeWindowStart &&
state.bankedSeconds !== 0
) {
if (key.k === KeyK.Escape) {
return {
...state,
Expand Down

0 comments on commit 923f219

Please sign in to comment.