When disabling keyboard focus, send a lost focus message

This commit is contained in:
Henrik Rydgard committed 2014-06-22 17:46:38 +02:00
1 parent fe1100a714
commit 8685d02e6d
1 file changed
+4 -1
+4 -1
View File
@@ -73,8 +73,11 @@ void SetFocusedView(View *view) {
void EnableFocusMovement(bool enable) {
focusMovementEnabled = enable;
if (!enable)
if (!enable) {
if (focusedView)
focusedView->FocusChanged(FF_LOSTFOCUS);
focusedView = 0;
}
}
bool IsFocusMovementEnabled() {