Toggle button

Hi is there a toggle button for toggling between writing in the code blocks and writing in the search box?

I always click canvas and hit escape a few times. escape clears the search box and lets you type.