mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
adding a null check escape to the activeItem. On right click back to root window active item becomes null instead of root item
This commit is contained in:
parent
a3ec365f6c
commit
39fd16fc9e
1 changed files with 1 additions and 1 deletions
|
@ -5109,7 +5109,7 @@ void Application::idle() {
|
|||
// If the offscreen Ui has something active that is NOT the root, then assume it has keyboard focus.
|
||||
if (offscreenUi && offscreenUi->getWindow()) {
|
||||
auto activeFocusItem = offscreenUi->getWindow()->activeFocusItem();
|
||||
if (_keyboardDeviceHasFocus && activeFocusItem != offscreenUi->getRootItem()) {
|
||||
if (_keyboardDeviceHasFocus && (activeFocusItem != NULL && activeFocusItem != offscreenUi->getRootItem())) {
|
||||
_keyboardMouseDevice->pluginFocusOutEvent();
|
||||
_keyboardDeviceHasFocus = false;
|
||||
synthesizeKeyReleasEvents();
|
||||
|
|
Loading…
Reference in a new issue