Fix find_focusable_child to use lowercase when comparing with focusable widgets

This commit is contained in:
Nicolas Évrard committed 2015-10-27 18:06:55 +01:00
1 parent fe477e63f5
commit ff5201511b
1 file changed
+2 -4
+2 -4
View File
@@ -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++) {