comment. docs.

This commit is contained in:
Christopher Jeffrey 2013-07-12 10:22:06 -05:00
parent a801b47e28
commit 932fe2b8f6
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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;