function show_commands() {
var commands = [];
$.each(files, function(i, f) {
- if ("name" in picinfo[f] && picinfo[f].name.length > 0) {
+ if ("name" in picinfo[f] && picinfo[f].name.length > 0 &&
+ !("deleted" in picinfo[f])) {
var command = ["pic-mv"];
if ("exposure" in picinfo[f]) {
command.push("-e " + picinfo[f].exposure);
Mousetrap.bind('c', function() { $("#name").show().focus(); return false; });
Mousetrap.bind('%', function() { say((100 * input_index / files.length).toFixed(2) + "%"); });
Mousetrap.bind('!', show_commands);
+Mousetrap.bind('esc', function() { $("#name").hide(); $("#shell_out").hide(); });