From 427b4f6c6d35c5e5807928801b1b8f8638017b9b Mon Sep 17 00:00:00 2001 From: tisilent Date: Thu, 14 Dec 2023 16:55:49 +0800 Subject: [PATCH] Update attachCustomWheelEventHandler comments --- typings/xterm.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/xterm.d.ts b/typings/xterm.d.ts index 211fce094c..39a9c91a52 100644 --- a/typings/xterm.d.ts +++ b/typings/xterm.d.ts @@ -1014,7 +1014,7 @@ declare module '@xterm/xterm' { * Attaches a custom wheel event handler which is run before keys are * processed, giving consumers of xterm.js control over whether to proceed * or cancel terminal wheel events. - * @param customMouseEventHandler The custom WheelEvent handler to attach. + * @param customWheelEventHandler The custom WheelEvent handler to attach. * This is a function that takes a WheelEvent, allowing consumers to stop * propagation and/or prevent the default action. The function returns * whether the event should be processed by xterm.js. @@ -1022,7 +1022,7 @@ declare module '@xterm/xterm' { * @example A handler that prevents all wheel events while ctrl is held from * being processed. * ```ts - * term.attachCustomKeyEventHandler(ev => { + * term.attachCustomWheelEventHandler(ev => { * if (ev.ctrlKey) { * return false; * }