fix #832, floating btns closing, Esc to close confirmation dialog, 0x0 rects disabled #947
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR description
--
Esc
key cancels the dialog window appearing before creating a new document (N) or opening new svg file (atm Esc key acts as Enter and selects currently focused button (usually it's an "Ok" choice) which is a bit confusing);-- Floating buttons (e.g. Shape Library or Rect/Square/Rect by hand) can be closed by clicking somewhere in the document (shapeLibrary - by clicking on the workarea and button itself, not only on the handle);
-- ShapeLibrary can be cancelled with Esc key (same as here);
-- Drawing of 0x0 rectangles/squares is disabled (atm a simple click while in rect or square creates such figure)
-- Addressing #832 - the mode will not change to select if
Alt
was pressed. I've chosen this key because Shift is reserved for Circle/Square while drawing Ellipses/Rect.-- after drawing a shape from the Shape Library (if
Alt
is not pressed) the mode changes to 'select' (same as with other tools, atm after drawing a shape mode doesn't change automatically)