only adjust search on left button click

Closes #898
This commit is contained in:
Damien Elmes 2021-01-07 10:07:51 +10:00
parent 52a2447f09
commit f667521ee0

View File

@ -40,7 +40,8 @@ class SidebarTreeViewBase(QTreeView):
def mouseReleaseEvent(self, event: QMouseEvent) -> None:
super().mouseReleaseEvent(event)
self.onClickCurrent()
if event.button() == Qt.LeftButton:
self.onClickCurrent()
def keyPressEvent(self, event: QKeyEvent) -> None:
if event.key() in (Qt.Key_Return, Qt.Key_Enter):