mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38:41 -09:00
parent
537e58ec10
commit
a348185cc5
1 changed files with 3 additions and 1 deletions
|
|
@ -256,7 +256,9 @@ hterm.Keyboard.prototype.onKeyDown_ = function (e) {
|
||||||
];
|
];
|
||||||
if (!clearBlacklist.includes(e.code.toLowerCase()) &&
|
if (!clearBlacklist.includes(e.code.toLowerCase()) &&
|
||||||
!clearBlacklist.includes(e.key.toLowerCase())) {
|
!clearBlacklist.includes(e.key.toLowerCase())) {
|
||||||
selection.clear(this.terminal);
|
// Since Electron 1.6.X, there is a race condition with character composition
|
||||||
|
// if this selection clearing is made synchronously. See #2140.
|
||||||
|
setTimeout(() => selection.clear(this.terminal), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the `hyperCaret` was removed on `selectAll`, we need to insert it back
|
// If the `hyperCaret` was removed on `selectAll`, we need to insert it back
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue