forked from mirror/openmw-tes3mp
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:
|
case A_Activate:
|
||||||
resetIdleTime();
|
resetIdleTime();
|
||||||
activate();
|
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;
|
break;
|
||||||
case A_Journal:
|
case A_Journal:
|
||||||
toggleJournal ();
|
toggleJournal ();
|
||||||
|
|
Loading…
Reference in a new issue