The interface of TeXStudio contains two parts. One is the editor and the other is the preview of pdf.
I use the search box of the preview of pdf to look for what I want, e.g. "python". But after I press "py", TeXStudio moves the focus from the search box to the editor. If I have paid no attention to the change of focus and press "thon", "thon" will be added to the code in the editor.
Why does this happen? How to solve it?