panes toggleFocus(): more reliable focus detection

This commit is contained in:
miruka 2020-04-01 05:47:38 -04:00
parent 70f67f01ac
commit e33c202376
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ HDrawer {
function toggleFocus() {
if (bottomBar.filterField.activeFocus) {
if (mainPane.activeFocus) {
pageLoader.takeFocus()
return
}

View File

@ -57,7 +57,7 @@ MultiviewPane {
function toggleFocus() {
if (swipeView.currentItem.keybindFocusItem.activeFocus) {
if (roomPane.activeFocus) {
if (roomPane.collapse) roomPane.close()
pageLoader.takeFocus()
return