Skip to content

Commit

Permalink
Merge pull request #2 from marc2k3/on-focus-fix
Browse files Browse the repository at this point in the history
Fix on_focus callback not always being triggered
  • Loading branch information
kbuffington authored Apr 26, 2020
2 parents 54fc020 + f9cb700 commit b368525
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/script_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b368525

Please sign in to comment.