parent
52a2447f09
commit
f667521ee0
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user