restore customKeydownHandler on reset(RIS)

This commit is contained in:
ayapi
2016-08-13 22:44:56 +09:00
parent b32a34b97c
commit c2aa0d75ec
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -3467,7 +3467,9 @@
Terminal.prototype.reset = function() {
this.options.rows = this.rows;
this.options.cols = this.cols;
var customKeydownHandler = this.customKeydownHandler;
Terminal.call(this, this.options);
this.customKeydownHandler = customKeydownHandler;
this.refresh(0, this.rows - 1);
};