Skip to content

Undo command in the Custom Widget editor undoes project actions, not text changes #726

@dsabanin

Description

@dsabanin

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

If you're writing code in the Custom Widget code editor and want to undo a recent change, pressing Cmd+Z instead undoes things like creating the Custom Widget, changing project settings, etc. Potentially very problematic if someone doesn't notice, as the undone changes may not be immediately obvious.

Expected Behavior

When editing code, Cmd+Z should be confined to actions within the editor.

Steps To Reproduce

  1. Create new Custom Widget
  2. Write some code
  3. Do Cmd+Z and see how the Custom Widget disappears from the sidebar on the left.

Bug Report Code

IT4si/Lqx892rsRE17rAccFr/GMsQlM2a+c0scp/bxIgGIDzPOw+ZPXsVxBDXemoS1FEIUSmmTsd+N3GheLpK/A4AxWuQbpgwbpQYQvKQmClUZOBDpDpQkBQTPFbfmqm0KWzsRUlNtNfV3AN6maYFty8dHPrNYzKImdISq/LZO4=

Context

I freaked out because if I don't notice this behavior next time, it may undo something important, like app setting changes, widget tree changes and who knows what else.

Additional info

No response

Environment

- FlutterFlow version: 1.1.57
- Platform: 3.7.3
- Browser name and version: macOS desktop app
- Operating system and version affected: macOS Ventura 13.3 (22E252)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions