Better Ctrl+F in the drive

This commit is contained in:
yflory 2020-09-21 15:59:00 +02:00
parent ab4e3b25b0
commit d2f5529653
1 changed files with 11 additions and 6 deletions

View File

@ -50,6 +50,17 @@ 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);
};
@ -4592,12 +4603,6 @@ define([
moveElements(paths, [TRASH], false, refresh);
return;
}
if (e.which === 70 && e.ctrlKey) {
e.preventDefault();
e.stopPropagation();
APP.displayDirectory([SEARCH]);
return;
}
});
$appContainer.contextmenu(function () {
APP.hideMenu();