]> git.scottworley.com Git - picsort/blobdiff - picsorter.js
Return status from keystroke handlers
[picsort] / picsorter.js
index d10631cc008fef86930967e127d264c8bc28cb9c..e0a05ff0022c54e8db57814c418fa9c9403b97ad 100644 (file)
@@ -51,6 +51,7 @@ function announce() {
     msg += "(" + picinfo[files[input_index]].deleted+ ")";
   }
   say(msg);
+  return false;
 }
 
 function toggle_zoom() {
@@ -60,6 +61,7 @@ function toggle_zoom() {
     zoom = "sm/";
   }
   setpic();
+  return false;
 }
 
 function move_by_filter(direction, filter) {
@@ -89,9 +91,11 @@ function move(direction) {
 }
 function move_to_begenning() {
   move_by_filter(-1, function(i) { return i == 0; });
+  return false;
 }
 function move_to_end() {
   move_by_filter(1, function(i) { return i == files.length - 1; });
+  return false;
 }
 function move_to_nondeleted(direction) {
   move_by_filter(direction, function(i) {
@@ -113,15 +117,17 @@ function mark_not_deleted() {
   delete picinfo[files[input_index]].deleted;
   save_picinfo();
   say("Undeleted");
+  return false;
 }
 
 function say_exposure() {
   if (!endsWith(files[input_index], ".NEF")) {
     say("Exposure adjustment not available");
-    return;
+    return false;
   }
   var display_exposure = (exposure / 4) - 3.5;
   say((display_exposure >= 0 ? "+" : "") + display_exposure);
+  return false;
 }
 
 function change_exposure(amount) {
@@ -146,6 +152,7 @@ function rotate() {
   }
   save_picinfo();
   setpic(); 
+  return false;
 }
 
 
@@ -193,6 +200,7 @@ function show_commands() {
   });
   commands.push("");
   $("#shell_out").text(commands.join("\n")).show();
+  return false;
 }
 
 function clean_picinfo() {