From ff5201511b156ff8fb042701c5c91f89cd02a72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Tue, 27 Oct 2015 18:06:55 +0100 Subject: [PATCH] Fix find_focusable_child to use lowercase when comparing with focusable widgets --- src/common.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common.js b/src/common.js index fe45a247f6..0ed490d4e5 100644 --- a/src/common.js +++ b/src/common.js @@ -3177,12 +3177,10 @@ if (!element.is(':visible')) { return null; } - if (~['input', 'select', 'textarea'].indexOf(element[0].tagName)) { + if (~['input', 'select', 'textarea'].indexOf( + element[0].tagName.toLowerCase())) { return element; } - if (element.children()) { - return null; - } children = Sao.common.get_focus_chain(element); for (i = 0, len = children.length; i < len; i++) {