focus the terminal when it is touched (#129128)
This commit is contained in:
parent
ffae23b5f1
commit
2b2924d1fb
1 changed files with 3 additions and 0 deletions
|
@ -807,6 +807,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
listener.dispose();
|
||||
});
|
||||
}));
|
||||
this._register(dom.addDisposableListener(xterm.element, 'touchstart', () => {
|
||||
xterm.focus();
|
||||
}));
|
||||
|
||||
// xterm.js currently drops selection on keyup as we need to handle this case.
|
||||
this._register(dom.addDisposableListener(xterm.element, 'keyup', () => {
|
||||
|
|
Loading…
Reference in a new issue