mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-24 18:00:45 +00:00
form methods.
This commit is contained in:
parent
9673eaf517
commit
1236f23f9e
@ -4444,6 +4444,20 @@ Form.prototype.focusPrevious = function() {
|
||||
this.previous().focus();
|
||||
};
|
||||
|
||||
Form.prototype.resetSelected = function() {
|
||||
this._selected = null;
|
||||
};
|
||||
|
||||
Form.prototype.focusFirst = function() {
|
||||
this.resetSelected();
|
||||
this.next().focus();
|
||||
};
|
||||
|
||||
Form.prototype.focusLast = function() {
|
||||
this.resetSelected();
|
||||
this.previous().focus();
|
||||
};
|
||||
|
||||
Form.prototype.submit = function() {
|
||||
var self = this
|
||||
, out = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user