From 5480180f5bf70d321b6d3f06c477213575134370 Mon Sep 17 00:00:00 2001 From: Enzo Batista <111511512+Enzo707@users.noreply.github.com> Date: Thu, 24 Aug 2023 12:31:20 -0300 Subject: [PATCH] fix: rename eventDispatcher related to forward delete (#14313) --- src/LibraryViewExtensionWebView2/LibraryViewController.cs | 2 +- src/LibraryViewExtensionWebView2/web/library/library.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LibraryViewExtensionWebView2/LibraryViewController.cs b/src/LibraryViewExtensionWebView2/LibraryViewController.cs index a0631bc8481..1bfc43befbe 100644 --- a/src/LibraryViewExtensionWebView2/LibraryViewController.cs +++ b/src/LibraryViewExtensionWebView2/LibraryViewController.cs @@ -362,7 +362,7 @@ private void Browser_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Delete) { - _ = ExecuteScriptFunctionAsync(browser, "dispatchEvent"); + _ = ExecuteScriptFunctionAsync(browser, "eventDispatcher"); } } diff --git a/src/LibraryViewExtensionWebView2/web/library/library.html b/src/LibraryViewExtensionWebView2/web/library/library.html index 97b5a5469d4..8ba89d57933 100644 --- a/src/LibraryViewExtensionWebView2/web/library/library.html +++ b/src/LibraryViewExtensionWebView2/web/library/library.html @@ -391,7 +391,7 @@ window.chrome.webview.postMessage(JSON.stringify({ "func": "ResizedEvent", "data": "" })); } - function dispatchEvent() { + function eventDispatcher() { const kbEvent = new KeyboardEvent('keydown', { bubbles: true,