Sublime Text - pressing enter in search box creates a new line instead of searching

I'll bet you are using the enter key on the keypad (right side of the keyboard)

Add a key mapping like this to user key mappings: Preferences -> Key Binding - User

{ "keys": ["keypad_enter"], "command": "find_next", "context":
        [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
}

Source: http://sublimetext.info/docs/en/reference/key_bindings.html


In Sublime Text 4 it seems the behavior has changed again and makes Enter add a newline. I've found a way to fix it by adding this to the User Key Bindings:

{ "keys": ["enter"], "command": "find_all",
    "context": [{"key": "panel", "operand": "find_in_files"}, {"key": "panel_has_focus"}]
},