Skip to content

Commit

Permalink
Patch .call
Browse files Browse the repository at this point in the history
  • Loading branch information
Émile Dupont-Foisy committed Sep 5, 2024
1 parent c3ecdb7 commit 189c3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XtermBlazor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class XtermBlazor {
} catch {
// Asynchronous for both Blazor Server and Blazor WebAssembly apps.
DotNet.invokeMethodAsync(this._ASSEMBLY_NAME, 'AttachCustomKeyEventHandler', id, this.parseKeyboardEvent(event));
return this.getTerminalObjectById(id).customKeyEventHandler?.call(event) ?? true;
return this.getTerminalObjectById(id).customKeyEventHandler?.call(terminal, event) ?? true;
}
});
terminal.attachCustomWheelEventHandler(event => {
Expand All @@ -54,7 +54,7 @@ class XtermBlazor {
} catch {
// Asynchronous for both Blazor Server and Blazor WebAssembly apps.
DotNet.invokeMethodAsync(this._ASSEMBLY_NAME, 'AttachCustomWheelEventHandler', id, event);
return this.getTerminalObjectById(id).customWheelEventHandler?.call(event) ?? true;
return this.getTerminalObjectById(id).customWheelEventHandler?.call(terminal, event) ?? true;
}
});

Expand Down

0 comments on commit 189c3b2

Please sign in to comment.