mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
code review
This commit is contained in:
parent
9a9cc10ee7
commit
52b1219db6
@ -315,7 +315,7 @@ void CHeroList::CHeroItem::keyPressed(EShortcut key)
|
||||
|
||||
auto & heroes = LOCPLINT->localState->getWanderingHeroes();
|
||||
|
||||
if(key == EShortcut::LIST_HERO_DELETE)
|
||||
if(key == EShortcut::LIST_HERO_DISMISS)
|
||||
{
|
||||
LOCPLINT->showYesNoDialog(CGI->generaltexth->allTexts[22], [=](){ LOCPLINT->cb->dismissHero(hero); }, nullptr);
|
||||
return;
|
||||
|
@ -297,7 +297,7 @@ enum class EShortcut
|
||||
LIST_HERO_DOWN,
|
||||
LIST_HERO_TOP,
|
||||
LIST_HERO_BOTTOM,
|
||||
LIST_HERO_DELETE,
|
||||
LIST_HERO_DISMISS,
|
||||
LIST_TOWN_UP,
|
||||
LIST_TOWN_DOWN,
|
||||
LIST_TOWN_TOP,
|
||||
|
@ -279,7 +279,7 @@ EShortcut ShortcutHandler::findShortcut(const std::string & identifier ) const
|
||||
{"listHeroDown", EShortcut::LIST_HERO_DOWN },
|
||||
{"listHeroTop", EShortcut::LIST_HERO_TOP },
|
||||
{"listHeroBottom", EShortcut::LIST_HERO_BOTTOM },
|
||||
{"listHeroDelete", EShortcut::LIST_HERO_DELETE },
|
||||
{"listHeroDismiss", EShortcut::LIST_HERO_DISMISS },
|
||||
{"listTownUp", EShortcut::LIST_TOWN_UP },
|
||||
{"listTownDown", EShortcut::LIST_TOWN_DOWN },
|
||||
{"listTownTop", EShortcut::LIST_TOWN_TOP },
|
||||
|
@ -246,7 +246,7 @@
|
||||
"listHeroDown": "Ctrl+PageDown",
|
||||
"listHeroTop": "Ctrl+Home",
|
||||
"listHeroBottom": "Ctrl+End",
|
||||
"listHeroDelete": "Delete",
|
||||
"listHeroDismiss": "Delete",
|
||||
"listTownUp": "Ctrl+PageUp",
|
||||
"listTownDown": "Ctrl+PageDown",
|
||||
"listTownTop": "Ctrl+Home",
|
||||
|
Loading…
Reference in New Issue
Block a user