mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-20 01:27:47 +08:00
update files
This commit is contained in:
@@ -7,6 +7,14 @@
|
||||
module.exports = function (Terminal){
|
||||
Terminal.focus = null;
|
||||
|
||||
/**
|
||||
* isFocused
|
||||
* @returns {boolean}
|
||||
*/
|
||||
Terminal.prototype.isFocused = function (){
|
||||
return Terminal.focus === this;
|
||||
};
|
||||
|
||||
/**
|
||||
* focus
|
||||
*/
|
||||
@@ -17,6 +25,8 @@ module.exports = function (Terminal){
|
||||
Terminal.focus.blur();
|
||||
}
|
||||
|
||||
Terminal.focus = this;
|
||||
|
||||
if (this.cursor) {
|
||||
this.showCursor();
|
||||
}
|
||||
@@ -24,8 +34,6 @@ module.exports = function (Terminal){
|
||||
if (this.cursorBlink) {
|
||||
this.startBlink();
|
||||
}
|
||||
|
||||
Terminal.focus = this;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user