fix a bug where the soft keyboard would always stay on