Skip to content

Conversation

@abarth
Copy link
Contributor

@abarth abarth commented Jan 30, 2016

Now the text input control knows how to move the caret when you tap
inside the string. There's still some rough edges to polish up, but this
patch is the first step.

Fixes #108

@abarth
Copy link
Contributor Author

abarth commented Jan 30, 2016

@Hixie

(Requires flutter/engine#2327)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the keyboard tell the editable string?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should organise the keyboard handle and the editable string such that you tell the same object what the new selection is regardless of whether a keyboard is attached.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I think I know what the problem really is. It's that we have the keyboard logic in the Material layer instead of in widgets/editable.dart. But we can fix that in a later patch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we need to reorganize this code a bit. There's another problem where the EditableString does't know how to tell the render object to repaint when the selection changes. Currently we wait for the cursor to blink. I can look at this in the next patch.

@Hixie
Copy link
Contributor

Hixie commented Jan 30, 2016

lgtm

Now the text input control knows how to move the caret when you tap
inside the string. There's still some rough edges to polish up, but this
patch is the first step.

Fixes flutter#108
abarth added a commit that referenced this pull request Jan 31, 2016
Adds the ability to move the caret by tapping
@abarth abarth merged commit b89935e into flutter:master Jan 31, 2016
@abarth abarth deleted the move_caret branch January 31, 2016 06:03
TahaTesser pushed a commit to NevercodeHQ/flutter that referenced this pull request Aug 13, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Input component should support moving the cursor via tapping

2 participants