From 17642e154d8116fe05ac1fedbcf48eb1d5d6ffcf Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Fri, 9 Nov 2018 09:55:21 -0500 Subject: [PATCH] FindElementWithFocus support for Multiline Element --- PySimpleGUI.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index b4f61421..efe49fe0 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -3845,7 +3845,10 @@ def _FindElementWithFocusInSubForm(form): if element.TKEntry is not None: if element.TKEntry is element.TKEntry.focus_get(): return element - + if element.Type == ELEM_TYPE_INPUT_MULTILINE: + if element.TKText is not None: + if element.TKText is element.TKText.focus_get(): + return element if sys.version_info[0] >= 3: def AddMenuItem(top_menu, sub_menu_info, element, is_sub_menu=False, skip=False):