mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
🐛 Focus the current tab after switch from a new one – closes #1273
This commit is contained in:
parent
e1a861659d
commit
e5c076e82f
1 changed files with 6 additions and 0 deletions
|
|
@ -394,6 +394,12 @@ hterm.Screen.prototype.syncSelectionCaret = function () {
|
|||
s.addRange(r);
|
||||
};
|
||||
|
||||
const oldScrollPortFocus = hterm.ScrollPort.prototype.focus;
|
||||
hterm.ScrollPort.prototype.focus = function () {
|
||||
oldScrollPortFocus();
|
||||
this.terminal.focusHyperCaret();
|
||||
};
|
||||
|
||||
// fixes a bug in hterm, where the cursor goes back to `BLOCK`
|
||||
// after the bell rings
|
||||
const oldRingBell = hterm.Terminal.prototype.ringBell;
|
||||
|
|
|
|||
Loading…
Reference in a new issue