-
Notifications
You must be signed in to change notification settings - Fork 15
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
AG-13008, AG-13041 Fix Delete/Escape key deleting the annotation in text-edit mode #2605
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's been a lot of back and forth on deleting annotations due to changes in interactions.
Please make sure any changes continue to work for both of these fixes:
packages/ag-charts-enterprise/src/features/annotations/annotationsStateMachine.ts
Outdated
Show resolved
Hide resolved
c0eb901
to
d572a66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
186dc17
to
fceef5c
Compare
I've checked these. ✅ AG-12476 - No regression |
7b60890
to
b0d8041
Compare
Rebased and resolved conflict by dropping the e2e snapshot update to this file: |
… editing text" This reverts commit 5da45e6.
This fixes a regression caused by the removal of the "mouseBlur" feature in KeyNavManager. This is sort of an anti-pattern. Showing the focus after pressing Backspace or Delete on the keyboard is the "correct" behaviour. However, the correct behaviour in this scenario feels flimsy. Rather than restoring the "mouseBlur" feature, we instead create and focus on a temporary so-called "focus mask" which is added above the canvas. The focus mask does not respond to pointer events, and puts the canvas-proxy back into focus whenever any key is pressed. The focus mask is removed once blurred. This mimics the "mouseBlur" functionality that the use to have.
…board" This reverts commit c3477c1.
…n deleting annotation
3db9d5d
to
8bf7c81
Compare
https://ag-grid.atlassian.net/browse/AG-13008
https://ag-grid.atlassian.net/browse/AG-13041