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,7 +360,11 @@ public class SettingsMenuDialog extends SettingsDialog{
keyDown(key -> {
if(key == KeyCode.ESCAPE || key == KeyCode.BACK){
hide();
if(prefs.getChildren().first() != menu){
back();
}else{
hide();
}
}
});
}