hide the drive's contextmenu when you hit escape

pull/1/head
ansuz 5 years ago
parent c8f7c96cfc
commit 154a0b1e6e

@ -526,6 +526,8 @@ define([
} }
}); });
}); });
return $(menu); return $(menu);
}; };
@ -919,6 +921,11 @@ define([
if (e.ctrlKey) { ev.ctrlKey = true; } if (e.ctrlKey) { ev.ctrlKey = true; }
if (e.shiftKey) { ev.shiftKey = true; } if (e.shiftKey) { ev.shiftKey = true; }
// ESC
if (e.which === 27) {
return void APP.hideMenu();
}
// Enter // Enter
if (e.which === 13) { if (e.which === 13) {
var $allSelected = $content.find('.cp-app-drive-element.cp-app-drive-element-selected'); var $allSelected = $content.find('.cp-app-drive-element.cp-app-drive-element-selected');

Loading…
Cancel
Save