-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add paste support for desktop and web + fix maxLength input #253
Conversation
can't try this right now, but will soon |
is this still an issue #251? |
Yes, that issue still persists. |
I've adjusted the priority of the KeyboardEvent.KEY_DOWN listener to allow all events. It needs tested to make sure it doesn't interfere with scrolling the page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on this branch, paste doesn't work for me on Chrome or Firefox, i set a breakpoint on case V if (e.ctrlKey):
and it hits but on html5 it's not pasting the clipboard it's only selecting/focusing the text, is this on purpose? is it reading from that textfield at some other place in code?
not sure why I can't paste, I'm able to paste into HaxeUI-Flixel textfields on chrome, I think.
I'll check to see what's going on. It's currently working for me in all mentioned browsers. When trying to paste, are you copying content to paste before or after the application has initialized? I may have some changes incorporated from the latest version of OpenFL. |
I believe I found the issue. I did not account for |
Thanks! |
Add support for desktop and HTML5 javascript paste events by adding an event handler that fills the field as the parent text element changes. Fixes an issue with maxLength text entry. Closes #251.