Skip to content

Commit

Permalink
Fix unfocusing item slots not resetting the focused slot to -1
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Sep 6, 2022
1 parent 76344e9 commit 1146695
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ public WWidget cycleFocus(boolean lookForwards) {
}
}

@Override
public void onFocusLost() {
focusedSlot = -1;
}

/**
* Adds a change listener to this slot.
* Does nothing if the listener is already registered.
Expand Down

0 comments on commit 1146695

Please sign in to comment.