diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 63e8d96a7..bb6af01c4 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -50,17 +50,6 @@ define([ allowFolderUpload: File.prototype.hasOwnProperty("webkitRelativePath"), }; - $(window).keydown(function (e) { - if (e.which === 70 && e.ctrlKey) { - e.preventDefault(); - e.stopPropagation(); - if (APP.displayDirectory) { - APP.displayDirectory([SEARCH]); - } - return; - } - }); - var stringify = function (obj) { return JSONSortify(obj); }; @@ -164,6 +153,17 @@ define([ var localStore = window.cryptpadStore; APP.store = {}; + $(window).keydown(function (e) { + if (e.which === 70 && e.ctrlKey) { + e.preventDefault(); + e.stopPropagation(); + if (APP.displayDirectory) { + APP.displayDirectory([SEARCH]); + } + return; + } + }); + var makeLS = function (teamId) { var suffix = teamId ? ('-' + teamId) : ''; var LS_LAST = "app-drive-lastOpened" + suffix;