mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 03:14:07 +08:00
update files
This commit is contained in:
parent
7d8eb15a78
commit
ff5529a1ab
@ -66,7 +66,7 @@ function createXTerm(name, xtermNode){
|
||||
fgColor: 'inherit',
|
||||
bgColor: 'transparent',
|
||||
onscreen: function (screen){
|
||||
if (Terminal.focus === this) {
|
||||
if (this.isFocused()) {
|
||||
clearTimeout(timer);
|
||||
|
||||
timer = setTimeout(function (){
|
||||
|
@ -7,6 +7,14 @@
|
||||
module.exports = function (Terminal){
|
||||
Terminal.focus = null;
|
||||
|
||||
/**
|
||||
* isFocused
|
||||
* @returns {boolean}
|
||||
*/
|
||||
Terminal.prototype.isFocused = function (){
|
||||
return Terminal.focus === this;
|
||||
};
|
||||
|
||||
/**
|
||||
* focus
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user