addCustomWheelEventHandler API
I opted for consistency with the key event handler over our more modern approach, we can migrate them at the same time if we end up returning a disposable. See microsoft/vscode#76381
This commit is contained in:
@@ -148,6 +148,9 @@ export class Terminal extends Disposable implements ITerminalApi {
|
||||
public attachCustomKeyEventHandler(customKeyEventHandler: (event: KeyboardEvent) => boolean): void {
|
||||
this._core.attachCustomKeyEventHandler(customKeyEventHandler);
|
||||
}
|
||||
public attachCustomWheelEventHandler(customWheelEventHandler: (event: WheelEvent) => boolean): void {
|
||||
this._core.attachCustomWheelEventHandler(customWheelEventHandler);
|
||||
}
|
||||
public registerLinkProvider(linkProvider: ILinkProvider): IDisposable {
|
||||
return this._core.registerLinkProvider(linkProvider);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user