Skip to content

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

Closed as not planned

Description

@jdm

./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.

Activity

  1. added
    E-less-complex
    C-has-manual-testcase
    on Dec 1, 2018
  2. highfive commented on Dec 1, 2018

    @highfive

    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. 😄

  3. vn-ki commented on Dec 1, 2018

    @vn-ki
    Contributor

    @highfive: assign me

  4. highfive commented on Dec 1, 2018

    @highfive

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

  5. added
    C-assigned
    on Dec 1, 2018
  6. vimpunk commented on Dec 20, 2018

    @vimpunk
    Contributor

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

  7. jdm commented on Dec 20, 2018

    @jdm
    MemberAuthor

    I can still reproduce this on macOS.

  8. added
    P-mac
    and removed
    C-assigned
    on Dec 20, 2018
  9. vimpunk commented on Dec 20, 2018

    @vimpunk
    Contributor

    Ah ok, I'm on Linux.

  10. flofriday commented on Mar 10, 2019

    @flofriday

    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">'.

  11. jackxbritton commented on Apr 10, 2019

    @jackxbritton
    Contributor

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

  12. jackxbritton commented on Apr 10, 2019

    @jackxbritton
    Contributor

    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.

  13. removed
    E-less-complex
    on Apr 10, 2019
  14. jdm commented on Apr 10, 2019

    @jdm
    MemberAuthor

    Thanks for verifying that!

  15. lumiscosity commented on Jul 26, 2025

    @lumiscosity
    Member

    winit has been bumped and the issue is fixed. Tested on Arch Linux x86_64, Servo built against commit 9d29017, profiling build.

    Screencast.From.2025-07-26.15-43-53.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inputC-has-manual-testcaseP-mac

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions