I'm on the same Safari version. Strangely I couldn't reproduce this behaviour just now. Because scrolling actually steals focus from the search field as soon as the cursor is over the rack. But I'm sure what you're describing has happened to me before as well. Just don't know I did it. Do the 'd' and 'v' keys also insert new modules while you're in the search field?