Skip to content
Commit f484ee97 authored by Scott Harvey's avatar Scott Harvey
Browse files

Rework rectangle/arrow key handling to avoid "stuck edges" and 0x0px rectangle

Summary:
Rewritten rectangle/arrow key movement & resizing functionality.
Eliminates problem where rectangle edges were resized to touch a screen edge but could not be sized back.
Also halts resizing at 20x20px - matches minimum size when mouse is clicked to begin selection.

Test Plan:
- Download patch & apply to Spectacle
- Begin a rectangular selection by dragging a rectangle with the mouse
- Use {key Arrows} keys to move rectangle to various screen edges
- Use {key Alt} + {key Arrow} to ensure rectangle edge releases from screen edge
- Use {key Alt} + {key Arrow} and attempt to make the smallest rectangle possible
  It shold stop at 20x20px and not get any smaller

Reviewers: rkflx, ngraham, #spectacle

Reviewed By: rkflx, #spectacle

Differential Revision: https://phabricator.kde.org/D14252
parent 68487fd0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment