-
I would like to clear the selection when the terminal loses focus. I was able to make it work like this: (terminal as any)._core?.onBlur?.(() => {
terminal.clearSelection();
}); It would be nice to expose this (Probably |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I think in the past we didn't add this as you can just add regular dom listeners to Lines 831 to 834 in 41e8ae3 |
Beta Was this translation helpful? Give feedback.
-
I tried that as well, but it didn't work. Example: https://codesandbox.io/p/sandbox/xtermjs-test-forked-rfznf7 |
Beta Was this translation helpful? Give feedback.
-
Ah I see, it works with |
Beta Was this translation helpful? Give feedback.
Ah I see, it works with
terminal.textarea
but notterminal.element
. Thanks! 🎉