mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix typo
This commit is contained in:
+2
-2
@@ -587,7 +587,7 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
|
||||
}, true);
|
||||
|
||||
on(this.element, 'keyup', (ev: KeyboardEvent) => {
|
||||
if (!wasMondifierKeyOnlyEvent(ev)) {
|
||||
if (!wasModifierKeyOnlyEvent(ev)) {
|
||||
this.focus();
|
||||
}
|
||||
}, true);
|
||||
@@ -1929,7 +1929,7 @@ function off(el: any, type: string, handler: (event: Event) => any, capture: boo
|
||||
el.removeEventListener(type, handler, capture);
|
||||
}
|
||||
|
||||
function wasMondifierKeyOnlyEvent(ev: KeyboardEvent): boolean {
|
||||
function wasModifierKeyOnlyEvent(ev: KeyboardEvent): boolean {
|
||||
return ev.keyCode === 16 || // Shift
|
||||
ev.keyCode === 17 || // Ctrl
|
||||
ev.keyCode === 18; // Alt
|
||||
|
||||
Reference in New Issue
Block a user