hi, is there an API in compose for EditText’s ```/...
# compose
hi, is there an API in compose for EditText’s
Copy code
 * Called when a context menu option for the text view is selected.  Currently
 * this will be one of {@link android.R.id#selectAll}, {@link android.R.id#cut},
 * {@link android.R.id#copy}, {@link android.R.id#paste} or {@link android.R.id#shareText}.
 * @return true if the context menu item action was performed.
public boolean onTextContextMenuItem(int id) {
👋 were you able to find a solution?
I think we can use
for listening to cut, copy and paste events
my colleague is currently working on this and he is using that, by proving AndroidTextToolbar, unfortunatelly he is saying that he need to copy whole code, there is no option to attach listeners or sth similar
Gotcha. I was easily able to set a listener by creating a TextToolbar that wraps around LocalTextToolbar.current.