Skip to content

Commit b997ec3

Browse files
committed
Activated numpad enter with the buttons in the main window.
1 parent 55602fe commit b997ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/widgets/button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
class EnterButton(QPushButton):
77
def keyPressEvent(self, event):
88

9-
if event.key() == Qt.Key.Key_Return or event.key() == Qt.Key.Key_Space:
9+
if event.key() in {Qt.Key.Key_Return, Qt.Key.Key_Space, Qt.Key.Key_Enter}:
1010
self.clicked.emit()
1111

0 commit comments

Comments
 (0)