input getSelection support