mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 06:09:42 +00:00
Close messages boxes with the activation key (Bug #589)
This commit is contained in:
parent
dc445844d2
commit
1a43d86d9e
1 changed files with 5 additions and 0 deletions
|
@ -179,6 +179,11 @@ namespace MWInput
|
|||
case A_Activate:
|
||||
resetIdleTime();
|
||||
activate();
|
||||
if( MWBase::Environment::get().getWindowManager()->isGuiMode()
|
||||
&& MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_InterMessageBox ) {
|
||||
// Pressing the activation key when a messagebox is prompting for "ok" will activate the ok button
|
||||
MWBase::Environment::get().getWindowManager()->enterPressed();
|
||||
}
|
||||
break;
|
||||
case A_Journal:
|
||||
toggleJournal ();
|
||||
|
|
Loading…
Reference in a new issue