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

iOS context menu isn't showing in empty textfield #1142

Merged
merged 3 commits into from Feb 26, 2024

Conversation

mazunin-v-jb
Copy link

@mazunin-v-jb mazunin-v-jb commented Feb 26, 2024

Proposed Changes

  • forwarded calling the context menu to tap handling function in ios textfield

Fixes

Inability to open context menu in empty textfield by tapping on empty space or the caret, like native behavior.

Related issues:
JetBrains/compose-multiplatform#4353
https://youtrack.jetbrains.com/issue/COMPOSE-1045/iOS-empty-textfield-context-menu

Testing

Test: Copy something to clipboard, open test app, go Components -> TextField -> Keyboard Actions, focus empty text field, tap on the caret

Google CLA

You need to sign the Google Contributor’s License Agreement at https://cla.developers.google.com/.
This is needed since we synchronise most of the code with Google’s AOSP repository. Signing this agreement allows us to synchronise code from your Pull Requests as well.

…mpose/foundation/text/CupertinoTextFieldPointerModifier.skiko.kt


change formatting

Co-authored-by: dima.avdeev <dima.avdeev@jetbrains.com>
@igordmn igordmn merged commit db710ab into jb-main Feb 26, 2024
3 checks passed
@igordmn igordmn deleted the v.mazunin/fix-ios-context-menu-in-empty-text-field branch February 26, 2024 19:42
igordmn pushed a commit that referenced this pull request Feb 26, 2024
## Proposed Changes

- forwarded calling the context menu to tap handling function in ios
textfield

## Testing

Test: Copy something to clipboard, open test app, go Components ->
TextField -> Keyboard Actions, focus empty text field, tap on the caret

## Issues Fixed

JetBrains/compose-multiplatform#4353

https://youtrack.jetbrains.com/issue/COMPOSE-1045/iOS-empty-textfield-context-menu

## Google CLA
You need to sign the Google Contributor’s License Agreement at
https://cla.developers.google.com/.
This is needed since we synchronise most of the code with Google’s AOSP
repository. Signing this agreement allows us to synchronise code from
your Pull Requests as well.

---------

Co-authored-by: dima.avdeev <dima.avdeev@jetbrains.com>
(cherry picked from commit db710ab)
igordmn pushed a commit that referenced this pull request Mar 4, 2024
## Proposed Changes

- forwarded calling the context menu to tap handling function in ios
textfield

## Testing

Test: Copy something to clipboard, open test app, go Components ->
TextField -> Keyboard Actions, focus empty text field, tap on the caret

## Issues Fixed

JetBrains/compose-multiplatform#4353

https://youtrack.jetbrains.com/issue/COMPOSE-1045/iOS-empty-textfield-context-menu

## Google CLA
You need to sign the Google Contributor’s License Agreement at
https://cla.developers.google.com/.
This is needed since we synchronise most of the code with Google’s AOSP
repository. Signing this agreement allows us to synchronise code from
your Pull Requests as well.

---------

Co-authored-by: dima.avdeev <dima.avdeev@jetbrains.com>
@mazunin-v-jb mazunin-v-jb added the changelog1.6.1 Temporary label for 1.6.1 changelog (will be removed) label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog1.6.1 Temporary label for 1.6.1 changelog (will be removed)
Projects
None yet
3 participants