add Escape to deselect in grid

This commit is contained in:
pax 2026-04-10 20:13:54 -05:00
parent 0b4fc9fa49
commit 42e7f2b529

View File

@ -632,6 +632,8 @@ class ThumbnailGrid(QScrollArea):
elif key == Qt.Key.Key_Return or key == Qt.Key.Key_Enter: elif key == Qt.Key.Key_Return or key == Qt.Key.Key_Enter:
if 0 <= idx < len(self._thumbs): if 0 <= idx < len(self._thumbs):
self.post_activated.emit(idx) self.post_activated.emit(idx)
elif key == Qt.Key.Key_Escape:
self.clear_selection()
elif key == Qt.Key.Key_Home: elif key == Qt.Key.Key_Home:
self._select(0) self._select(0)
elif key == Qt.Key.Key_End: elif key == Qt.Key.Key_End: