@@ -44,7 +44,7 @@ class XtermBlazor {
44
44
} catch {
45
45
// Asynchronous for both Blazor Server and Blazor WebAssembly apps.
46
46
DotNet . invokeMethodAsync ( this . _ASSEMBLY_NAME , 'AttachCustomKeyEventHandler' , id , this . parseKeyboardEvent ( event ) ) ;
47
- return this . getTerminalObjectById ( id ) . customKeyEventHandler ?. call ( terminal , event ) ?? true ;
47
+ return this . getTerminalObjectById ( id ) . customKeyEventHandler ( event ) ;
48
48
}
49
49
} ) ;
50
50
terminal . attachCustomWheelEventHandler ( event => {
@@ -54,7 +54,7 @@ class XtermBlazor {
54
54
} catch {
55
55
// Asynchronous for both Blazor Server and Blazor WebAssembly apps.
56
56
DotNet . invokeMethodAsync ( this . _ASSEMBLY_NAME , 'AttachCustomWheelEventHandler' , id , event ) ;
57
- return this . getTerminalObjectById ( id ) . customWheelEventHandler ?. call ( terminal , event ) ?? true ;
57
+ return this . getTerminalObjectById ( id ) . customWheelEventHandler ( event ) ;
58
58
}
59
59
} ) ;
60
60
@@ -73,8 +73,8 @@ class XtermBlazor {
73
73
this . _terminals . set ( id , {
74
74
terminal : terminal ,
75
75
addons : addons ,
76
- customKeyEventHandler : undefined ,
77
- customWheelEventHandler : undefined
76
+ customKeyEventHandler : ( event : KeyboardEvent ) => true ,
77
+ customWheelEventHandler : ( event : WheelEvent ) => true ,
78
78
} ) ;
79
79
}
80
80
0 commit comments