From 9ca2acda3acb4c4c4ae6f8239616631604c4a8cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Thu, 19 May 2022 08:56:08 +0300
Subject: [PATCH 1/1] App: Fixed limited focus cycling
src/app.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app.c b/src/app.c
index d3cced8e..d088a6ff 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1765,9 +1765,9 @@ void processEvents_App(enum iAppEventMode eventMode) {
}
if (!wasUsed) {
/* Focus cycling. */
if (ev.type == SDL_KEYDOWN && ev.key.keysym.sym == SDLK_TAB) {
if (ev.type == SDL_KEYDOWN && ev.key.keysym.sym == SDLK_TAB && current_Root()) {
iWidget *startFrom = focus_Widget();
const iBool isLimitedFocus = focusRoot_Widget(startFrom) != root_Widget(startFrom);
const iBool isLimitedFocus = focusRoot_Widget(startFrom) != get_Root()->widget;
/* Go to a sidebar if one is visible. */
if (!startFrom && !isLimitedFocus &&
isVisible_Widget(findWidget_App("sidebar"))) {
--
2.25.1
text/plain
This content has been proxied by September (3851b).