From e33c202376252c7e509d650258884c997677ffdb Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 1 Apr 2020 05:47:38 -0400 Subject: [PATCH] panes toggleFocus(): more reliable focus detection --- src/gui/MainPane/MainPane.qml | 2 +- src/gui/Pages/Chat/RoomPane/RoomPane.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/MainPane/MainPane.qml b/src/gui/MainPane/MainPane.qml index 17b10ec2..cf32c6c9 100644 --- a/src/gui/MainPane/MainPane.qml +++ b/src/gui/MainPane/MainPane.qml @@ -26,7 +26,7 @@ HDrawer { function toggleFocus() { - if (bottomBar.filterField.activeFocus) { + if (mainPane.activeFocus) { pageLoader.takeFocus() return } diff --git a/src/gui/Pages/Chat/RoomPane/RoomPane.qml b/src/gui/Pages/Chat/RoomPane/RoomPane.qml index 0d5d1042..f9629bc3 100644 --- a/src/gui/Pages/Chat/RoomPane/RoomPane.qml +++ b/src/gui/Pages/Chat/RoomPane/RoomPane.qml @@ -57,7 +57,7 @@ MultiviewPane { function toggleFocus() { - if (swipeView.currentItem.keybindFocusItem.activeFocus) { + if (roomPane.activeFocus) { if (roomPane.collapse) roomPane.close() pageLoader.takeFocus() return