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

Support multiline inputs #5

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

Conversation

astorije
Copy link
Contributor

On multiline inputs (textarea elements), hitting Up/Down, when there are multiple lines, needs to take over going back in history. Also Shift+Enter lets you add a new line.

Other changes include my editor cleaning up trailing whitespaces (review with ?w=1 in URL to ignore those), and adding strict mode 'coz it's good :)

This is actually a port of changes we've been using for 1.5y now (see https://github.com/thelounge/lounge/blob/master/client/js/libs/jquery/inputhistory.js#L58-L71) and it has served us well so far. I'm trying to sync our changes with the upstream project so we can correctly refer to this package instead of keeping a copy of our own :)

On multiline inputs (`textarea` elements), hitting <kbd>Up</kbd>/<kbd>Down</kbd>, when there are multiple lines, needs to take over going back in history. Also <kbd>Shift</kbd>+<kbd>Enter</kbd> lets you add a new line.

Other changes include my editor cleaning up trailing whitespaces, and adding strict mode 'coz it's good :)

This is actually a port of changes we've been using for 1.5y now (see https://github.com/thelounge/lounge/blob/master/client/js/libs/jquery/inputhistory.js#L58-L71) and it has served us well so far. I'm trying to sync our changes with the upstream project so we can correctly refer to this package instead of keeping a copy of our own :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant