Skip to content

Commit 189c3b2

Browse files
committed
Patch .call
1 parent c3ecdb7 commit 189c3b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XtermBlazor/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class XtermBlazor {
4444
} catch {
4545
// Asynchronous for both Blazor Server and Blazor WebAssembly apps.
4646
DotNet.invokeMethodAsync(this._ASSEMBLY_NAME, 'AttachCustomKeyEventHandler', id, this.parseKeyboardEvent(event));
47-
return this.getTerminalObjectById(id).customKeyEventHandler?.call(event) ?? true;
47+
return this.getTerminalObjectById(id).customKeyEventHandler?.call(terminal, event) ?? true;
4848
}
4949
});
5050
terminal.attachCustomWheelEventHandler(event => {
@@ -54,7 +54,7 @@ class XtermBlazor {
5454
} catch {
5555
// Asynchronous for both Blazor Server and Blazor WebAssembly apps.
5656
DotNet.invokeMethodAsync(this._ASSEMBLY_NAME, 'AttachCustomWheelEventHandler', id, event);
57-
return this.getTerminalObjectById(id).customWheelEventHandler?.call(event) ?? true;
57+
return this.getTerminalObjectById(id).customWheelEventHandler?.call(terminal, event) ?? true;
5858
}
5959
});
6060

0 commit comments

Comments
 (0)