From af68e41fb67e0069512b299e0c7c407b6e2c04a4 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 28 Mar 2017 10:57:13 +0200 Subject: [PATCH] Always set the focus to the search bar in the drive --- www/drive/main.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/www/drive/main.js b/www/drive/main.js index 5a9a71384..d7996401c 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1536,11 +1536,9 @@ define([ module.resetTree(); - if (isSearch) { - $tree.find('#searchInput').focus(); - $tree.find('#searchInput')[0].selectionStart = getSearchCursor(); - $tree.find('#searchInput')[0].selectionEnd = getSearchCursor(); - } + $tree.find('#searchInput').focus(); + $tree.find('#searchInput')[0].selectionStart = getSearchCursor(); + $tree.find('#searchInput')[0].selectionEnd = getSearchCursor(); if (!isWorkgroup()) { setLastOpenedFolder(path);