Restore esc abort key

develop
ymber 2020-04-04 11:12:51 +01:00
parent 6b603bc644
commit 5d032b3d9c
No known key found for this signature in database
GPG Key ID: 67C1F45D80C15567
1 changed files with 3 additions and 0 deletions

@ -13,6 +13,9 @@ struct embark_profile_name_hook : df::viewscreen_setupdwarfgamest {
if( in_save_profile && ch >= 33 && ch <= 126 ) { if( in_save_profile && ch >= 33 && ch <= 126 ) {
profile_name.push_back( ( char )ch ); profile_name.push_back( ( char )ch );
} else { } else {
if( input->count( df::interface_key::LEAVESCREEN ) ) {
input->insert( df::interface_key::SETUPGAME_SAVE_PROFILE_ABORT );
}
INTERPOSE_NEXT( feed )( input ); INTERPOSE_NEXT( feed )( input );
} }
} }