fix the bug that the textbox is not empty when it pops up by pressing Alt-Q