More inputContext usage.
Shifted determination of wasSomethingSelected.