mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-11 03:25:45 +00:00
comment. docs.
This commit is contained in:
parent
a801b47e28
commit
932fe2b8f6
@ -606,10 +606,10 @@ A very simple file manager for selecting files.
|
||||
##### Methods:
|
||||
|
||||
- inherits all from List.
|
||||
- **refresh([callback])** - refresh the file list (perform a `readdir` on `cwd`
|
||||
- **refresh([cwd], [callback])** - refresh the file list (perform a `readdir` on `cwd`
|
||||
and update the list items).
|
||||
- **pick(callback)** - pick a single file and return the path in the callback.
|
||||
- **reset([callback])** - reset back to original cwd.
|
||||
- **pick([cwd], callback)** - pick a single file and return the path in the callback.
|
||||
- **reset([cwd], [callback])** - reset back to original cwd.
|
||||
|
||||
|
||||
### Positioning
|
||||
|
@ -374,8 +374,13 @@ Screen.prototype._listenMouse = function(el) {
|
||||
|
||||
for (; i < clickable.length; i++) {
|
||||
el = clickable[i];
|
||||
|
||||
if (!el.visible) continue;
|
||||
|
||||
// Something like (doesn't work because textbox is usually focused):
|
||||
// if (self.grabKeys && self.focused !== el
|
||||
// && !el.hasAncestor(self.focused)) continue;
|
||||
|
||||
// Get the true coordinates.
|
||||
ret = el._lastPos;
|
||||
if (!ret) continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user