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:
|
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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user