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

This commit is contained in:
Joshua Fan 2019-11-14 11:41:15 -08:00 committed by Anuken
parent c5a4d7331f
commit a9b822089f

View File

@ -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();
}
}
});
}