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

How to prevent copy/paste/cut context menu when right click on textfield #3286

Closed
ning-drift opened this issue Jun 25, 2023 · 4 comments
Closed
Labels
question Not a bug, but question or comment

Comments

@ning-drift
Copy link

as this link says.I want to prevent copy/paste/cut context menu when right click on textfield on desktop platfrom.i try to provied a EmptyTextToolbar to LocalTextToolbar it's does't work

@ning-drift
Copy link
Author

https://stackoverflow.com/a/76550780/22128385
emm, i find a solution.it's recommended practice?
Please help me improve it, or close this issue

@Walingar Walingar added the question Not a bug, but question or comment label Jun 26, 2023
@Walingar
Copy link
Collaborator

Hello @ning-drift, thank you for your question!
The solution that you provided is good! You can see the documentation regarding this topic here: https://github.com/JetBrains/compose-multiplatform/blob/master/tutorials/Context_Menu/README.md#custom-text-context-menu

@ning-drift
Copy link
Author

yeah documentation it‘s clear.I missed them, the description about reuse the original TextContextMenu misled me

@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

@JetBrains JetBrains locked and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Not a bug, but question or comment
Projects
None yet
Development

No branches or pull requests

3 participants