Skip to content

Commit

Permalink
Fixed bug where filters cannot be cycled while with cmd+f while one o…
Browse files Browse the repository at this point in the history
…f the panes is hidden.
  • Loading branch information
andytill committed Oct 30, 2015
1 parent 1972ad2 commit 9e7a313
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/main/java/erlyberly/FilterFocusManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,17 @@ private static Control findNextFilter() {
focused = 0;
}
else {
focused++;
if(focused >= filters.size()) {
focused = 0;
// iterate the filters until we find one that is part of the scene or we run out of filters
int iterations = 0;
while(iterations < filters.size()) {
iterations++;
focused++;
if(focused >= filters.size()) {
focused = 0;
}
boolean isFocusable = filters.get(focused).getScene() != null;
if(isFocusable)
break;
}
}

Expand Down

0 comments on commit 9e7a313

Please sign in to comment.