Skip to content
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

feat(DYN-5976): add forward delete functionality #14217

Merged

Conversation

Enzo707
Copy link
Contributor

@Enzo707 Enzo707 commented Aug 2, 2023

forward-delete

Purpose

This PR implements the forward delete functionality as webview2 doesn't support Accelerator keys
DYN-5976

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

Implements forward delete functionality for searchBar input in librariejs and the mechanism in dynamo to "binding" accelerator keys that are not supported in webview2.
In other words we track accelerator keys in Dynamo and use javascript dispatchEvent method to trigger the librariejs event that execute the forward delete method.

Reviewers

@QilongTang

FYIs

@RobertGlobant20

@QilongTang QilongTang added this to the 2.19.0 milestone Aug 2, 2023
@@ -347,6 +348,7 @@ private void Browser_CoreWebView2InitializationCompleted(object sender, CoreWebV
//The default value of the zoom factor is 1.0. The value that comes from the slider is in percentage, so we divide by 100 to be equivalent
browser.ZoomFactor = (double)dynamoViewModel.Model.PreferenceSettings.LibraryZoomScale / 100;
browser.ZoomFactorChanged += Browser_ZoomFactorChanged;
browser.KeyDown += Browser_KeyDown;
Copy link
Contributor

@QilongTang QilongTang Aug 2, 2023

Choose a reason for hiding this comment

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

Please unsubscribe at protected void Dispose(bool disposing) function to avoid memory leak

@QilongTang
Copy link
Contributor

@Enzo707 Can you take another look at DynamoDS/librarie.js#185?

@QilongTang QilongTang merged commit 29e4227 into DynamoDS:master Aug 3, 2023
23 checks passed
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.

None yet

2 participants