Skip to content

Fix caret movement#180

Merged
kou-yeung merged 2 commits intokou-yeung:masterfrom
hyunwoo9120:hyunwoo.kim
Aug 31, 2025
Merged

Fix caret movement#180
kou-yeung merged 2 commits intokou-yeung:masterfrom
hyunwoo9120:hyunwoo.kim

Conversation

@hyunwoo9120
Copy link
Copy Markdown
Contributor

Now we can

  • Select and drag text within an Input Field using the mouse.
  • Navigate the caret using the up and down arrow keys.

Note

  • May not apply fully to UI Toolkit and legacy InputField

[Task]
- Mouse click-driven caret movement is now handled in WebGLInput::Update
    - Input/textarea caret position <= InputField caret position
    - Modified style to prevent input/textarea from being clickable
    - Commented out DeactivateInputField of Blur coroutine
        to prevent focus out -> focus in when clicking the InputField again
- Keyboard input-driven caret movement is now handled in WebGLInput::OnValueChange
    - InputField caret position <= input/textarea caret position
- Created KeyboardDownHandler for actions like Ctrl, Shift, arrow keys, etc
@kou-yeung kou-yeung merged commit 1a584e0 into kou-yeung:master Aug 31, 2025
@kou-yeung
Copy link
Copy Markdown
Owner

Thanks for your contribution!

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.

2 participants