Skip to content

fix: block insert shortcuts during element placement - #56

Open
wuhaodesq-star wants to merge 1 commit into
qucat:mainfrom
wuhaodesq-star:fix/issue-53
Open

fix: block insert shortcuts during element placement#56
wuhaodesq-star wants to merge 1 commit into
qucat:mainfrom
wuhaodesq-star:fix/issue-53

Conversation

@wuhaodesq-star

Copy link
Copy Markdown

Summary

  • Block addElement actions (keyboard shortcuts and menu) while a component is being placed or the property panel is open
  • Prevents orphan components from being created without entering required property data

Problem

Fixes #53 — pressing an insert shortcut (e.g. R, C) while placing a new component could create additional elements on the canvas without opening the property dialog.

Test plan

Prevent addElement via keyboard or menu while placing a component or editing properties, so components cannot be created without entering required data.

Fixes qucat#53

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: If user adds a component with keystroke when placing a new component being created a component is allowed to be created without entering some data.

2 participants