Skip to content

Commit

Permalink
Fixed bug in DoubleSpinBox where typing a plus would cause weird beha…
Browse files Browse the repository at this point in the history
…vior
  • Loading branch information
Ahsoka committed Aug 13, 2021
1 parent c441abb commit c586c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beskar/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def keyPressEvent(self, key_event: QtGui.QKeyEvent) -> None:
new_pos = cursor_pos + 1
self.lineEdit().setText(text)
self.lineEdit().setCursorPosition(new_pos)
else:
elif key_event.key() != QtCore.Qt.Key.Key_Plus:
super().keyPressEvent(key_event)

def resizeEvent(self, resize_event: QtGui.QResizeEvent) -> None:
Expand Down

0 comments on commit c586c8b

Please sign in to comment.