mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
parent
49781ea29a
commit
6fa649e8bf
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue