From 8685d02e6d44cbe327ab49f69efbcc1275771d6f Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 22 Jun 2014 17:46:38 +0200 Subject: [PATCH] When disabling keyboard focus, send a lost focus message --- ui/view.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/view.cpp b/ui/view.cpp index 0b45e499f7..feb59e55e7 100644 --- a/ui/view.cpp +++ b/ui/view.cpp @@ -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() {