(In reply to Alessandro Castellani (:aleca) (PTO to 17th Jan 2020, sporadically reading bugmail) from comment #1)
How do you think we should handle the past if pills from different recipients are selected?
Good point. Certainly an edge case, but if we allow simultaneous selection across recipient types, it must be handled.
If the user currently selected a pill from the CC field and a pill from the TO field, and hits
ctrl+v, should both CC and TO receive the copied values?
No, that would be unexpected and not useful. Selections can receive keyboard input (e.g. DEL), but this a pretty extraordinary type of selection and it just doesn't make sense to paste into two different fields at once, and that would be quite unheard of.
If not, which one should have priority?
If it's not selection, keystrokes must correlate to keyboard focus. So I think in this case, the most predictable behaviour is to paste into the field which has keyboard focus (one pill with keyboard focus ring). Btw, keyboard focus ring on selected pill is pretty much invisible right now - can we make that more visible? maybe dotted blue border?
I'm not sure if this implementation is really necessary as it's a bit counter intuitive to expect a field to receive a paste action when the field is not selected/focused.
I'm not sure if I understand you here, but I guess it's in line with my proposal: Paste action should go into the field with keyboard focus, which is only one field even when cross-field selections are present.