Copying using ClipboardTrigger via a shortcut

I’m attempting to copy one of the fields from multiple entities in a table, so I built my string, put a button, a textfield, and It was working, hovewer, I don’t really want to press a button every time I copy that field’s value, so I’ve tried to use a shortcut for a button, but It did not work. It feels like the only way to use ClipboardTrigger is to click on a UI button, which is far from Ideal.

Tired of trying stuff, I decided to just ask here instead - is there a way to use shortcut for ClipboardTrigger? Or, to put it simpler, Is there a way to copy a string using shortcut without selecting that string anywhere in UI?

Hi, Serge

The clipboard only works when the button is clicked from the client-side.

Regards,
Dmitriy

hello, is it possible to show how to use this component, ClipboardTrigger
, but passing a value that is in the DataGrid?

Hi!

This is only possible if you pass values from the DataGrid to the input field.
You can see the documentation for more information: ClipboardTrigger :: Jmix Documentation

Regards,
Dmitriy

I had not located the documentation, with the instructions that appear I was able to execute the process and it worked,

but only if the textField component is visible on the screen, if you hide it, the copy does not work, is this behavior correct?

Yes, it is correct behavior.