Merge pull request #179 from badoo/hterm_deactivate_fix_pull

Stop hterm spamming with errors to console after deactivate()
This commit is contained in:
Iwasaki Yudai 2017-11-24 17:55:50 -08:00 committed by GitHub
commit 8df0bf44a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,9 +75,9 @@ export class Hterm {
}; };
deactivate(): void { deactivate(): void {
this.io.onVTKeystroke = null; this.io.onVTKeystroke = function(){};
this.io.sendString = null this.io.sendString = function(){};
this.io.onTerminalResize = null; this.io.onTerminalResize = function(){};
this.term.uninstallKeyboard(); this.term.uninstallKeyboard();
} }