allow "End" key when not yet loaded all
authorGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 23 Apr 2010 20:56:40 +0000 (22:56 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 23 Apr 2010 20:56:40 +0000 (22:56 +0200)
bin/booh-classifier

index a2bc8d6..cb7c2bd 100644 (file)
@@ -1088,6 +1088,10 @@ def thumbnail_keypressed(entry, event)
 
         elsif event.keyval == Gdk::Keyval::GDK_End
             index = $allentries.size - 1
+            while $allentries[index] && ! $allentries[index].button
+                #- not yet loaded
+                index -= 1
+            end
             while $allentries[index] && $allentries[index].button && !visible($allentries[index])
                 index -= 1
             end