add Escape to deselect in grid
This commit is contained in:
parent
0b4fc9fa49
commit
42e7f2b529
@ -632,6 +632,8 @@ class ThumbnailGrid(QScrollArea):
|
||||
elif key == Qt.Key.Key_Return or key == Qt.Key.Key_Enter:
|
||||
if 0 <= idx < len(self._thumbs):
|
||||
self.post_activated.emit(idx)
|
||||
elif key == Qt.Key.Key_Escape:
|
||||
self.clear_selection()
|
||||
elif key == Qt.Key.Key_Home:
|
||||
self._select(0)
|
||||
elif key == Qt.Key.Key_End:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user