Skip to content

Ensure the diagram always has default focus #3296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2024
Merged

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented May 6, 2024

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Diagrams do not have focus by default. This is not handy, since it causes users to click on a diagram once before they can actually use keyboard shortcuts.

Issue Number: N/A

What is the new behavior?

The diagram always gets focus:

  • When opened
  • When another diagram is selected

This way shortcuts work instantly.

Additionally, there was an issue that not all items are updated after loading (due to the new diagram update strategy). Now diagrams are explicitly updated after loading.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

* When opened
* When another diagram is selected
@github-actions github-actions bot added the python Pull requests that update Python code label May 6, 2024
@amolenaar amolenaar requested a review from danyeaw May 6, 2024 10:30
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @amolenaar!

@danyeaw danyeaw added fix A fix for a bug and removed python Pull requests that update Python code labels May 7, 2024
@danyeaw danyeaw merged commit 6f1aec3 into main May 7, 2024
@danyeaw danyeaw deleted the fix-diagram-focus branch May 7, 2024 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants