From f230ac89454dcdbc043cd8b6b8738eb258b75e78 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 21 Sep 2015 19:50:03 -0400 Subject: [PATCH] send fake lua key release event when going into another interface --- src/gui/game/GameView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 87d9f820a0..36ab0ab94d 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -1622,6 +1622,8 @@ void GameView::OnBlur() isMouseDown = false; drawMode = DrawPoints; c->MouseUp(0, 0, 0, 1); // tell lua that mouse is up (even if it really isn't) + if (GetModifiers()) + c->KeyRelease(0, 0, false, false, false); } void GameView::OnTick(float dt)