mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Do not trigger multiple hotkeys when battle window wait for any key
This commit is contained in:
@@ -186,6 +186,11 @@ void BattleWindow::deactivate()
|
||||
LOCPLINT->cingconsole->deactivate();
|
||||
}
|
||||
|
||||
bool BattleWindow::captureThisKey(EShortcut key)
|
||||
{
|
||||
return owner.openingPlaying();
|
||||
}
|
||||
|
||||
void BattleWindow::keyPressed(EShortcut key)
|
||||
{
|
||||
if (owner.openingPlaying())
|
||||
|
||||
Reference in New Issue
Block a user