only copy selection when copy or cut clicked