Skip to content
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

Disabling arrow keys for empty lines. #82

Closed
awnumar opened this issue Nov 13, 2016 · 9 comments
Closed

Disabling arrow keys for empty lines. #82

awnumar opened this issue Nov 13, 2016 · 9 comments
Assignees
Labels
Milestone

Comments

@awnumar
Copy link

awnumar commented Nov 13, 2016

When using a text editor, it's customary that using the down or right arrow keys have no effect when we're at the end of the text and there's no more characters after the cursor. The enter key is then used to insert a new line.

In an input box created with v.Editable = true, the cursor keys can be used indefinitely to create newlines (see _examples/mask.go). Since we're still pre-v1.0.0, I think this is a safe change to make.

@jroimartin
Copy link
Owner

This will be handled by the new edition mode. We'll close this issue after confirming that the new edition mode effectively fixes this.

Relates to: #60

@jroimartin jroimartin added the wip label Nov 13, 2016
@jroimartin jroimartin self-assigned this Nov 13, 2016
@jroimartin jroimartin added this to the gocui v0.4 milestone Nov 13, 2016
@jroimartin jroimartin added the bug label Nov 13, 2016
@awnumar
Copy link
Author

awnumar commented Jan 30, 2017

Is there any update to v0.4?

@jroimartin
Copy link
Owner

I've been working on other projects during the last months, but I plan to resume gocui's development soon. Sorry for this inactivity period.

@awnumar
Copy link
Author

awnumar commented Mar 12, 2017

@jroimartin Not to be pushy or anything, but is there an ETA? I have a few projects that are on hold until this is fixed.

@oakes
Copy link

oakes commented Apr 18, 2017

Possibly related, but I noticed (at least in the OS X terminal app) scrolling causes ASCII codes like <64;72;17M to appear. Perhaps there is a way to intercept text before it gets to the buffer, so we can prevent that from appearing?

Edit: I ended up disabling mouse events, which somewhat fixes the issue.

@jroimartin
Copy link
Owner

@oakes related: #35

@oakes
Copy link

oakes commented Apr 18, 2017

@jroimartin Interesting, thanks. Is there a way to just disable mouse scrolling altogether?

@jroimartin
Copy link
Owner

Fixed via 75a7ad2. Could you check? :)

@jroimartin
Copy link
Owner

BTW you can use _examples/bufs.go to test it easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants