Fixed an issue where the cancel prompt would appear early if the soft keyboard was not showing.