Call getType on selection to determine its type in clipboard command state update procedure.