Skip to content

Commit

Permalink
Update MediaPlayerFXMLController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny12301 committed Feb 4, 2023
1 parent eacb719 commit 3f9ffde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/controllers/MediaPlayerFXMLController.java
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ public void searchPlaylistItems() {
mainScene.setOnKeyTyped((t) -> {
// escape, backspace, enter
if (t.getCharacter().equals("\u001B") || t.getCharacter().equals("\b") || t.getCharacter().equals("\n") || t.getCharacter().equals("\r")) {

if (searchPlaylist.isVisible()) {
searchPlaylist.setVisible(false);
}
return;
}

Expand Down

0 comments on commit 3f9ffde

Please sign in to comment.