mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-10 19:16:20 +00:00
fix loader. element focused property.
This commit is contained in:
parent
d065230e70
commit
5b249d3fec
@ -284,6 +284,7 @@ The base element.
|
||||
- **content** - element's text content.
|
||||
- **clickable** - element is clickable.
|
||||
- **input** - element is focusable and can receive key input.
|
||||
- **focused** - element is focused.
|
||||
- **hidden** - whether the element is hidden.
|
||||
- **label** - a simple text label for the element.
|
||||
- **align** - text alignment: `left`, `center`, or `right`.
|
||||
|
@ -1880,6 +1880,10 @@ Element.prototype.__proto__ = Node.prototype;
|
||||
|
||||
Element.prototype.type = 'element';
|
||||
|
||||
Element.prototype.__defineGetter__('focused', function() {
|
||||
return this.screen.focused === this;
|
||||
});
|
||||
|
||||
Element.prototype.sattr = function(obj, fg, bg) {
|
||||
var bold = obj.bold
|
||||
, underline = obj.underline
|
||||
@ -5914,7 +5918,7 @@ Loading.prototype.load = function(text) {
|
||||
this.setContent(text);
|
||||
|
||||
if (this._.timer) {
|
||||
this._.stop();
|
||||
this.stop();
|
||||
}
|
||||
|
||||
this.screen.lockKeys = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user