Skip to content

Commit

Permalink
nuke 14 panel bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
plasmax authored Oct 31, 2024
1 parent 68c16b9 commit d383726
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions PythonEditor/ui/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,15 @@ def keyPressEvent(self, event):
that QShortcut cannot override.
"""
self._key_pressed = True

# Nuke 14 bugfix - override Spacebar to
# prevent the window from expanding
if event.key() == Qt.Key_Space:
event.accept()
# print("editor: space")
self.textCursor().insertText(" ")
self.post_key_pressed_signal.emit(event)
return

if not self.hasFocus():
event.ignore()
Expand Down

0 comments on commit d383726

Please sign in to comment.