Skip to content

Commit

Permalink
fix arrow key movement
Browse files Browse the repository at this point in the history
  • Loading branch information
dmMaze committed Aug 26, 2023
1 parent a3f2493 commit cfde1f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ def undo(self):
for blk, pos in zip(self.blkitems, self.ori_pos_list):
blk.setPos(pos)
if blk.under_ctrl and self.shape_ctrl.blk_item == blk:
self.shape_ctrl.setPos(pos)
self.shape_ctrl.updateBoundingRect()

def redo(self):
for blk, pos in zip(self.blkitems, self.end_pos_list):
blk.setPos(pos)
if blk.under_ctrl and self.shape_ctrl.blk_item == blk:
self.shape_ctrl.setPos(pos)
self.shape_ctrl.updateBoundingRect()

def mergeWith(self, other: QUndoCommand) -> bool:
canmerge = self.blkitems == other.blkitems and self.direction == other.direction
Expand Down

0 comments on commit cfde1f6

Please sign in to comment.