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

Introduce minimal virtual keyboard support #1259

Merged
merged 6 commits into from Apr 11, 2024

Conversation

Schahen
Copy link
Collaborator

@Schahen Schahen commented Apr 10, 2024

No description provided.

@Schahen Schahen requested a review from eymar April 10, 2024 12:08
import org.w3c.dom.HTMLTextAreaElement
import org.w3c.dom.events.KeyboardEvent

internal class SynchronizedTextArea(
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor question. IMO, 'Synchornized' conveys a meaning that it has something to do with safe concurrent usage (at least the first thought was like this).
In this case, maybe it can named something like ShadowTextArea or TextAreaProxy?

Or adding a couple of kdoc lines can help quickly clarify the purpose of this class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree let me actually do both - rename it and add some documentation

import androidx.compose.ui.text.input.PlatformTextInputService
import androidx.compose.ui.text.input.TextFieldValue

class WebKeyboardInputService : PlatformTextInputService {
Copy link
Collaborator

Choose a reason for hiding this comment

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

does it need to be public? Can it be internal?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, it is not supposed to be public, will push a fix, thank you for noticing it

Copy link
Collaborator

@eymar eymar left a comment

Choose a reason for hiding this comment

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

Nice!

@eymar
Copy link
Collaborator

eymar commented Apr 11, 2024

Thanks to @jershell and @Schahen for the efforts to make it live :)

@Schahen Schahen merged commit 3e434d2 into jb-main Apr 11, 2024
6 checks passed
@Schahen Schahen deleted the shagen/COMPOSE-1169-minimal-virtual-with-jershell branch April 11, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants