From 9037c60decdb77b7b0c0426fe197405a5ecf544f Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 25 May 2020 09:06:58 -0400 Subject: [PATCH] Added Pane support to Window.find_element_with_focus --- PySimpleGUI.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 7e575a74..a802b732 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -9489,6 +9489,10 @@ def _FindElementWithFocusInSubForm(form): matching_elem = _FindElementWithFocusInSubForm(element) if matching_elem is not None: return matching_elem + elif element.Type == ELEM_TYPE_PANE: + matching_elem = _FindElementWithFocusInSubForm(element) + if matching_elem is not None: + return matching_elem elif element.Type == ELEM_TYPE_INPUT_TEXT: if element.TKEntry is not None: if element.TKEntry is element.TKEntry.focus_get():