1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 17:09:40 +00:00

Closing message boxes with numpad enter

This commit is contained in:
vorenon 2013-11-16 19:15:47 +00:00
parent 985ce7c552
commit b2d2a3dd17

View file

@ -503,7 +503,7 @@ namespace MWInput
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())
{
// Pressing enter when a messagebox is prompting for "ok" will activate the ok button