@xterm/xterm 5.4.0-beta.22 → 5.4.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/typings/xterm.d.ts +2 -2
package/package.json
CHANGED
package/typings/xterm.d.ts
CHANGED
|
@@ -1014,7 +1014,7 @@ declare module '@xterm/xterm' {
|
|
|
1014
1014
|
* Attaches a custom wheel event handler which is run before keys are
|
|
1015
1015
|
* processed, giving consumers of xterm.js control over whether to proceed
|
|
1016
1016
|
* or cancel terminal wheel events.
|
|
1017
|
-
* @param
|
|
1017
|
+
* @param customWheelEventHandler The custom WheelEvent handler to attach.
|
|
1018
1018
|
* This is a function that takes a WheelEvent, allowing consumers to stop
|
|
1019
1019
|
* propagation and/or prevent the default action. The function returns
|
|
1020
1020
|
* whether the event should be processed by xterm.js.
|
|
@@ -1022,7 +1022,7 @@ declare module '@xterm/xterm' {
|
|
|
1022
1022
|
* @example A handler that prevents all wheel events while ctrl is held from
|
|
1023
1023
|
* being processed.
|
|
1024
1024
|
* ```ts
|
|
1025
|
-
* term.
|
|
1025
|
+
* term.attachCustomWheelEventHandler(ev => {
|
|
1026
1026
|
* if (ev.ctrlKey) {
|
|
1027
1027
|
* return false;
|
|
1028
1028
|
* }
|