mirror of https://github.com/xwiki-labs/cryptpad
Better Ctrl+F in the drive
This commit is contained in:
parent
ab4e3b25b0
commit
d2f5529653
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue