Default getSelectedText() to only return the primary selection, but add a parameter to let the caller get all selections