mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-07 13:20:25 +00:00
Closing message boxes with numpad enter
This commit is contained in:
parent
985ce7c552
commit
b2d2a3dd17
@ -503,7 +503,7 @@ namespace MWInput
|
|||||||
|
|
||||||
mInputBinder->keyPressed (arg);
|
mInputBinder->keyPressed (arg);
|
||||||
|
|
||||||
if(arg.keysym.sym == SDLK_RETURN
|
if(arg.keysym.sym == SDLK_RETURN || arg.keysym.sym == SDLK_KP_ENTER
|
||||||
&& MWBase::Environment::get().getWindowManager()->isGuiMode())
|
&& MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||||
{
|
{
|
||||||
// Pressing enter when a messagebox is prompting for "ok" will activate the ok button
|
// Pressing enter when a messagebox is prompting for "ok" will activate the ok button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user