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

Can't move caret to leftmost position in text input with arrow keys #22344

Open
jdm opened this issue Dec 1, 2018 · 10 comments
Open

Can't move caret to leftmost position in text input with arrow keys #22344

jdm opened this issue Dec 1, 2018 · 10 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Dec 1, 2018

./mach run -d 'data:text/html,<input value="hi">'
Try to use the arrow keys to position the caret in front of the h. I would expect the error to exist in the code that deals with a single horizontal adjustment.

@highfive
Copy link

@highfive highfive commented Dec 1, 2018

Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the #servo channel in IRC.

If you intend to work on this issue, then add @highfive: assign me to your comment, and I'll assign this to you. 😄

@vn-ki
Copy link
Contributor

@vn-ki vn-ki commented Dec 1, 2018

@highfive: assign me

@highfive
Copy link

@highfive highfive commented Dec 1, 2018

Hey @vn-ki! Thanks for your interest in working on this issue. It's now assigned to you!

@highfive highfive added the C-assigned label Dec 1, 2018
@mandreyel
Copy link
Contributor

@mandreyel mandreyel commented Dec 20, 2018

I can position the caret in front of the h with the arrow keys. Has this been fixed?

@jdm
Copy link
Member Author

@jdm jdm commented Dec 20, 2018

I can still reproduce this on macOS.

@jdm jdm added P-mac and removed C-assigned labels Dec 20, 2018
@mandreyel
Copy link
Contributor

@mandreyel mandreyel commented Dec 20, 2018

Ah ok, I'm on Linux.

@flofriday
Copy link

@flofriday flofriday commented Mar 10, 2019

Also on macOS, I can only move the cursor one position back.
I tested it with this command ./mach run -d 'data:text/html,<input value="hello">'.

@jackxbritton
Copy link
Contributor

@jackxbritton jackxbritton commented Apr 10, 2019

Hey, I can reproduce this. Can I get assigned?

@jackxbritton
Copy link
Contributor

@jackxbritton jackxbritton commented Apr 10, 2019

Did some experimentation, what's happening is that additional unicode characters (\uf702 and \uf703) are being inserted into the current line whenever a key is pressed. This is a clone of #22345 and rust-windowing/winit#778.

@jdm jdm removed the E-easy label Apr 10, 2019
@jdm
Copy link
Member Author

@jdm jdm commented Apr 10, 2019

Thanks for verifying that!

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

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.