fix input bug in textmode and bind search event to button