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

Bug when pasting multiple lines into a textfield #19

Open
doekman opened this issue Sep 3, 2020 · 0 comments
Open

Bug when pasting multiple lines into a textfield #19

doekman opened this issue Sep 3, 2020 · 0 comments

Comments

@doekman
Copy link

doekman commented Sep 3, 2020

There is a bug when pasting text into a textfield that contains a newline.

When you have a Pashua form with the following control:

name.type = textfield
button.type = defaultbutton

and you copy/paste the following text into it (only select one newline):

Line one
Line two

When pasting you see the text Line two in the textfield. When you leave the field by pressing the tab-key, you see 'Line one`. Now press the OK button. Pashua will return the following text:

name=Line one
Line two
button=1

Expected behaviour

For starters, when pasting the newlines should be removed (or replaced by spaces).

Also, a control should never output text with multiple lines. When not converting new lines, Pashua should return this (like a textbox control would handle it:

name=Line one[return]Line two
button=1
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

No branches or pull requests

1 participant