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