primary_selection function

Extract the Primary Selection