fix a UI bug etc

1. fix a bug caused by string only contains spaces
2. include the cases 'backspace' and 'space' for feature 'input
everywhere'
3. change the tabIndex a little bit