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);