diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-29 18:39:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 18:39:45 +0200 |
commit | b2f6beb888d17b2a01779bba203067c0aba548c4 (patch) | |
tree | 5400b67183b8264693d02ac32157f5bdcc729611 /platform/osx | |
parent | 23147ae2c3740e73f0247cf4bff24ba9326683a4 (diff) | |
parent | c709dfdf06f6b09b61c1f34ff5a32cbfa8acc523 (diff) |
Merge pull request #28061 from guilhermefelipecgs/fix_19137
[Input] Release keys/actions pressed if window loses focus
Diffstat (limited to 'platform/osx')
-rw-r--r-- | platform/osx/os_osx.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 789e0bbd3e..fec524c04b 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -337,6 +337,11 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt } - (void)windowDidMove:(NSNotification *)notification { + + if (OS_OSX::singleton->get_main_loop()) { + OS_OSX::singleton->input->release_pressed_events(); + } + /* [window->nsgl.context update]; |