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 a2bc8d66bcc7cd128a88f61f182131b1758eef72..cb7c2bd92a2d78eadfa49aa125ef0fffe02f14ff 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