flameshot
flameshot copied to clipboard
WIP: Move objects with keyboard
Implements #2490.
However, it still doesn't work 100%. For some reason, the first move is never recorded and I don't know why.
Steps to reproduce:
- create an object (rectangle, for example)
- select the object by clicking on it
- press Shift+Left once
- press the undo button
- the object disappears instead of moving back to its original position
- now repeat steps 1-4, it works this time!
The issue was fixed by using a different method. The movement is initiated by a key press and stopped by a key release. In order to achieve this, the shortcuts for moving/resizing the selection had to be removed, and its functionality had to be hard-coded. The drawback here is that the user will no longer be able to use different keys for moving/resizing the selection.
Is this ready for review / merging?
Hi @borgmanJeremy, I think so!