Change spawnmenu to search after pressing enter

Its very annoying that the game freezes up after typing each letter in the search bar.
I made it so you have to press enter or click on the magnifier to search.
Its untested but I don't see how it wouldn't work.