Make linter happy
This commit is contained in:
parent
b39c26153b
commit
8d75a675dd
|
@ -88,10 +88,6 @@ function Client(input, output) {
|
||||||
stream.call(this);
|
stream.call(this);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
//this.input = input;
|
|
||||||
//this.output = output;
|
|
||||||
//this.term = new term.ClientTerminal(this.output);
|
|
||||||
this.user = new user.User();
|
this.user = new user.User();
|
||||||
this.currentTheme = { info : { name : 'N/A', description : 'None' } };
|
this.currentTheme = { info : { name : 'N/A', description : 'None' } };
|
||||||
this.lastKeyPressMs = Date.now();
|
this.lastKeyPressMs = Date.now();
|
||||||
|
@ -341,6 +337,7 @@ function Client(input, output) {
|
||||||
var code =
|
var code =
|
||||||
(parts[1] || '') + (parts[2] || '') +
|
(parts[1] || '') + (parts[2] || '') +
|
||||||
(parts[4] || '') + (parts[9] || '');
|
(parts[4] || '') + (parts[9] || '');
|
||||||
|
|
||||||
var modifier = (parts[3] || parts[8] || 1) - 1;
|
var modifier = (parts[3] || parts[8] || 1) - 1;
|
||||||
|
|
||||||
key.ctrl = !!(modifier & 4);
|
key.ctrl = !!(modifier & 4);
|
||||||
|
@ -379,8 +376,10 @@ function Client(input, output) {
|
||||||
|
|
||||||
self.lastKeyPressMs = Date.now();
|
self.lastKeyPressMs = Date.now();
|
||||||
|
|
||||||
|
if(!self.ignoreInput) {
|
||||||
self.emit('key press', ch, key);
|
self.emit('key press', ch, key);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue