When filing an ICLA, I often copy the public name (and if needed, the full 
name) so I can then find the PMC vote approving the committer.

This involves a non-trivial select the field, copy the data. Non-trivial 
because selecting the field is a double-click and a cursor movement to exactly 
the place where the entire field is highlighted.

I have seen other web pages with an icon to copy the field. I cannot figure out 
how to add this to the ICLA form for the full and public names. Here is how it 
might look:
Full Name: ✂ Mao Zedong
Public Name: ✂ Mao Zedong

And it would be nice to add tooltips to some of the form fields...

I found this on the internets but don't know exactly how it applies:
/* Copy the text inside the text field */
  navigator.clipboard.writeText(copyText.value);

Any ideas?

Thanks,
Craig

<div class="tooltip">
<button onclick="myFunction()" onmouseout="outFunc()">
  <span class="tooltiptext" id="myTooltip">Copy to clipboard</span>
  ✂
  </button>
</div>
Craig L Russell
c...@apache.org

Reply via email to