mriale / PyDPainter

A usable pixel art paint program written in Python
GNU General Public License v3.0
550 stars 26 forks source link

SHIFT while drawing rectangle #138

Closed Sleuthgame closed 3 months ago

Sleuthgame commented 5 months ago

Holding SHIFT while using Rectangle tool does not fit the Dpaint legacy:

Incidentally, if you hold down the Shift key as you draw, you can
constrain the rectangle so that its height and width are equal. 
Sleuthgame commented 4 months ago

Same omission for Brush selector.

In fact, the way it works today is the same for "tracing" drawing tools such as Free Hand, Line, Airbrush, and so on.

mriale commented 3 months ago

Added shift to constrain to square for rectangle tool and brush tool. In the process I had to modify the event handlers because holding shift was auto-repeating the key press and causing the rectangles to flash repeatedly. Issue #142 fixed that and also made a way for future automated testing and scripting (issue #130).

Sleuthgame commented 3 months ago

Ready to go. I have updated the doc.