Skip to content

Commit

Permalink
Update dlg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Aug 24, 2024
1 parent 8a1cdea commit b940d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/HolocronToolset/src/toolset/gui/editors/dlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4377,9 +4377,9 @@ def _handleShiftItemKeybind(self, selectedIndex: QModelIndex, selectedItem: DLGS
self.ui.dialogTree.setCurrentIndex(belowIndex)
self.model.shiftItem(selectedItem, 1, noSelectionUpdate=True)
elif aboveIndex.isValid() and key in (QtKey.Key_Up,) and not self.ui.dialogTree.visualRect(aboveIndex).contains(self.ui.dialogTree.viewport().rect()):
self.ui.dialogTree.scrollSingleStep("up")
self.ui.dialogTree.scrollMultipleSteps("up")
elif belowIndex.isValid() and key in (QtKey.Key_Down,) and not self.ui.dialogTree.visualRect(belowIndex).contains(self.ui.dialogTree.viewport().rect()):
self.ui.dialogTree.scrollSingleStep("down")
self.ui.dialogTree.scrollMultipleSteps("down")

def keyPressEvent(
self,
Expand Down

0 comments on commit b940d81

Please sign in to comment.