mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:27:48 +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 the offscreen Ui has something active that is NOT the root, then assume it has keyboard focus.
|
||||||
if (offscreenUi && offscreenUi->getWindow()) {
|
if (offscreenUi && offscreenUi->getWindow()) {
|
||||||
auto activeFocusItem = offscreenUi->getWindow()->activeFocusItem();
|
auto activeFocusItem = offscreenUi->getWindow()->activeFocusItem();
|
||||||
if (_keyboardDeviceHasFocus && activeFocusItem != offscreenUi->getRootItem()) {
|
if (_keyboardDeviceHasFocus && (activeFocusItem != NULL && activeFocusItem != offscreenUi->getRootItem())) {
|
||||||
_keyboardMouseDevice->pluginFocusOutEvent();
|
_keyboardMouseDevice->pluginFocusOutEvent();
|
||||||
_keyboardDeviceHasFocus = false;
|
_keyboardDeviceHasFocus = false;
|
||||||
synthesizeKeyReleasEvents();
|
synthesizeKeyReleasEvents();
|
||||||
|
|
Loading…
Reference in a new issue