Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/enter-exit-navigation' i…
Browse files Browse the repository at this point in the history
…nto feature/enter-exit-navigation
  • Loading branch information
FabienRoger committed Feb 22, 2022
2 parents 7d25715 + 34c2d02 commit 7cd4cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyflow/blocks/codeblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self, source: str = "", **kwargs):
self._pen_outlines = {
ExecutableState.IDLE: QPen(QColor("#00000000")), # No outline
ExecutableState.RUNNING: QPen(QColor("#fffc6107")), # Dark orange
ExecutableState.PENDING: QPen(QColor("#90fc6107")), # Transparent orange
ExecutableState.PENDING: QPen(QColor("#80fcdb07")), # Dark yellow
ExecutableState.DONE: QPen(QColor("#158000")), # Dark green
ExecutableState.CRASHED: QPen(QColor("#ff0000")), # Red: Crashed
}
Expand Down
2 changes: 1 addition & 1 deletion pyflow/graphics/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def keyPressEvent(self, event: QKeyEvent):
self.scene().clearSelection()
self.scene().clearFocus()

if key_id == Qt.Key.Key_Alt:
if key_id in (Qt.Key.Key_Return, Qt.Key.Key_Enter):
selected_items = self.scene().selectedItems()
if len(selected_items) == 1:
item = selected_items[0]
Expand Down

0 comments on commit 7cd4cf6

Please sign in to comment.