jQuery-Smart-Auto-Complete icon indicating copy to clipboard operation
jQuery-Smart-Auto-Complete copied to clipboard

Possibility to submit with Enter without selecting

Open bkw opened this issue 13 years ago • 2 comments

For the use case of search suggestions it would be nice to have an option to submit a search with the enter key even if none of the completion suggestions were selected. Right now that doesn't seem to be possible because keyCode 13 is always caught and resets the textfield.

Or am I missing something?

TIA, bkw

bkw avatar Apr 03 '11 21:04 bkw

keyCode 13's default action is prevented only when there are suggestions. Will look into a way of giving an option to disable that behaviour.

Lakshan

On Mon, Apr 4, 2011 at 3:00 AM, bkw < [email protected]>wrote:

For the use case of search suggestions it would be nice to have an option to submit a search with the enter key even if none of the completion suggestions were selected. Right now that doesn't seem to be possible because keyCode 13 is always caught and resets the textfield.

Or am I missing something?

TIA, bkw

Reply to this email directly or view it on GitHub: https://github.com/laktek/jQuery-Smart-Auto-Complete/issues/5

laktek avatar Apr 03 '11 21:04 laktek

excellent, thanks!

bkw avatar Apr 04 '11 16:04 bkw