From f9cb700337bd5c775aea176fc7b364a6d0748228 Mon Sep 17 00:00:00 2001 From: marc2k3 <marc2003@live.co.uk> Date: Fri, 24 Apr 2020 12:11:44 +0100 Subject: [PATCH] Fix on_focus callback not always being triggered --- src/script_host.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/script_host.cpp b/src/script_host.cpp index 5c98312..ff8d651 100644 --- a/src/script_host.cpp +++ b/src/script_host.cpp @@ -58,6 +58,7 @@ HRESULT script_host::InitCallbackMap() switch (id) { case callback_id::on_char: + case callback_id::on_focus: case callback_id::on_key_down: case callback_id::on_key_up: m_host->m_grabfocus = true;