mouse gestures: left->right button does undo, right->left button does redo
authorgc <gc>
Sun, 12 Jun 2005 15:28:20 +0000 (15:28 +0000)
committergc <gc>
Sun, 12 Jun 2005 15:28:20 +0000 (15:28 +0000)
bin/booh

index 5843fa0b1480372a20147ca669ee94d50b147e9d..dae8cb80dad2770bb182511d9c0155544e600f32 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -877,6 +877,12 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption)
                 view_element(filename, { :delete => delete })
                 propagate = false
             end
+            if event.keyval == Gdk::Keyval::GDK_Z && control_pressed
+                perform_undo
+            end
+            if event.keyval == Gdk::Keyval::GDK_R && control_pressed
+                perform_redo
+            end
         end
         !propagate  #- propagate if needed
     }