From 5d032b3d9c4cbd69c1a5ea79ca54e58f40336c92 Mon Sep 17 00:00:00 2001 From: ymber Date: Sat, 4 Apr 2020 11:12:51 +0100 Subject: [PATCH] Restore esc abort key --- plugins/tweak/tweaks/embark-profile-name.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/tweak/tweaks/embark-profile-name.h b/plugins/tweak/tweaks/embark-profile-name.h index f9cb45f4b..74501a7e0 100644 --- a/plugins/tweak/tweaks/embark-profile-name.h +++ b/plugins/tweak/tweaks/embark-profile-name.h @@ -13,6 +13,9 @@ struct embark_profile_name_hook : df::viewscreen_setupdwarfgamest { if( in_save_profile && ch >= 33 && ch <= 126 ) { profile_name.push_back( ( char )ch ); } else { + if( input->count( df::interface_key::LEAVESCREEN ) ) { + input->insert( df::interface_key::SETUPGAME_SAVE_PROFILE_ABORT ); + } INTERPOSE_NEXT( feed )( input ); } }