mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-17 14:08: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);
|
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`
|
// fixes a bug in hterm, where the cursor goes back to `BLOCK`
|
||||||
// after the bell rings
|
// after the bell rings
|
||||||
const oldRingBell = hterm.Terminal.prototype.ringBell;
|
const oldRingBell = hterm.Terminal.prototype.ringBell;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue