Skip to content

Commit

Permalink
Merge pull request #4 from hmikihth/Qt6_based
Browse files Browse the repository at this point in the history
RunWidget Qt6 fix
  • Loading branch information
blackPantherOS authored Feb 20, 2024
2 parents e833b7f + 8eb524e commit c40233f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Extensions_Qt6/BottomWidgets/RunWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,28 +785,28 @@ def keyPressEvent(self, event):
"""
line, index = self.getCursorPosition()
key = event.key()
ctrl = event.modifiers() & QtCore.Qt.ControlModifier
alt = event.modifiers() & QtCore.Qt.AltModifier
shift_down = event.modifiers() & QtCore.Qt.ShiftModifier
ctrl = event.modifiers() & QtCore.Qt.KeyboardModifier.ControlModifier
alt = event.modifiers() & QtCore.Qt.KeyboardModifier.AltModifier
shift_down = event.modifiers() & QtCore.Qt.KeyboardModifier.ShiftModifier
if ctrl:
pass
elif alt:
pass
elif key == QtCore.Qt.Key_Backspace:
elif key == QtCore.Qt.Key.Key_Backspace:
if self.getCursorPosition() == self.blocking_cursor_pos:
pass
else:
QsciScintilla.keyPressEvent(self, event)
elif key == QtCore.Qt.Key_Left:
elif key == QtCore.Qt.Key.Key_Left:
if self.getCursorPosition() == self.blocking_cursor_pos:
pass
else:
QsciScintilla.keyPressEvent(self, event)
elif key == QtCore.Qt.Key_Up:
elif key == QtCore.Qt.Key.Key_Up:
self.scrollVertical(-1)
elif key == QtCore.Qt.Key_Down:
elif key == QtCore.Qt.Key.Key_Down:
self.scrollVertical(1)
elif key == QtCore.Qt.Key_Return:
elif key == QtCore.Qt.Key.Key_Return:
# get input text
text = self.getText(
self.blocking_cursor_pos, self.position("eof"))
Expand Down

0 comments on commit c40233f

Please sign in to comment.