-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use mouse to focus more than one textbox #406
Comments
I'm getting this as well, I think the library just isn't being updated anymore. |
@AngeloMateus I think I just fixed in in my fork |
@tr4g Your fork doesn't exist any more. Do you still have a snippet that fixes the problem? |
Anyone have a patch for this? |
Ok, this worked for me: diff --git a/lib/widgets/textarea.js b/lib/widgets/textarea.js
index dc94609..9813867 100644
--- a/lib/widgets/textarea.js
+++ b/lib/widgets/textarea.js
@@ -172,9 +172,9 @@ Textarea.prototype.readInput = function(callback) {
self.screen.restoreFocus();
}
- if (self.options.inputOnFocus) {
- self.screen.rewindFocus();
- }
+ // if (self.options.inputOnFocus) {
+ // self.screen.rewindFocus();
+ // }
// Ugly
if (err === 'stop') return;
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, so I have 2 textboxes and I'm trying to type text on both of them. When I click the first it works fine, but when I click on the second box, the cursor stays on the first one and typing text makes the first box to add every letter twice and the second doesn't add anything.
Code is here:
Also, some times when pressing
tab
the program crashes withThe text was updated successfully, but these errors were encountered: