Make Esc mirror back button behavior in settings (#1061)

This commit is contained in:
Joshua Fan
2019-11-14 14:41:15 -05:00
committed by Anuken
parent c5a4d7331f
commit a9b822089f
@@ -360,8 +360,12 @@ public class SettingsMenuDialog extends SettingsDialog{
keyDown(key -> { keyDown(key -> {
if(key == KeyCode.ESCAPE || key == KeyCode.BACK){ if(key == KeyCode.ESCAPE || key == KeyCode.BACK){
if(prefs.getChildren().first() != menu){
back();
}else{
hide(); hide();
} }
}
}); });
} }
} }