mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-13 22:36:35 -04:00
Close messages boxes with the activation key (Bug #589)
This commit is contained in:
parent
dc445844d2
commit
1a43d86d9e
@ -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…
x
Reference in New Issue
Block a user