Skip to content

Commit

Permalink
fix: rename eventDispatcher related to forward delete (#14313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enzo707 authored Aug 24, 2023
1 parent bf6cca8 commit 5480180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LibraryViewExtensionWebView2/LibraryViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private void Browser_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Delete)
{
_ = ExecuteScriptFunctionAsync(browser, "dispatchEvent");
_ = ExecuteScriptFunctionAsync(browser, "eventDispatcher");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/LibraryViewExtensionWebView2/web/library/library.html
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
window.chrome.webview.postMessage(JSON.stringify({ "func": "ResizedEvent", "data": "" }));
}

function dispatchEvent() {
function eventDispatcher() {

const kbEvent = new KeyboardEvent('keydown', {
bubbles: true,
Expand Down

0 comments on commit 5480180

Please sign in to comment.