viewer.append(self.navbar)
viewer.append(init_gallery_widgets())
self.side_box = Gtk.Box(orientation=OR_V)
- self.side_box.append(init_sorter_and_filterer())
+ self.sort_box = init_sorter_and_filterer()
+ self.side_box.append(self.sort_box)
self.side_box.append(init_metadata_box())
box_outer = Gtk.Box(orientation=OR_H)
box_outer.append(self.side_box)
"""Handle keys if not in Entry, return True if key handling done."""
if isinstance(self.get_focus().get_parent(), Gtk.Entry):
return False
- if Gdk.KEY_G == keyval:
+ if Gdk.KEY_Return == keyval and\
+ self.get_focus().get_parent().get_parent() == self.sort_box:
+ self.activate_sort_order()
+ elif Gdk.KEY_G == keyval:
self.move_selection_in_gallery(None, None, 1)
elif Gdk.KEY_h == keyval:
self.move_selection_in_gallery(-1, None, None)