WP7 - Hide keyboard while typing in autocomplete field
I am using an autocomplete box and I would like to remove the focus from the autocomplete box when I press enter on my keyboard.
I tried using the OnKeyDown method, but didn't find that the enter key was pressed (it detects all other keys).
How can I detect how the user presses the enter key?
Thank!
+3
Cameron
source
to share
1 answer
Luckily I solved it! (I'm a little dumb to ask a question now).
It turns out that while OnKeyDown works for most controls, in order to detect an enter key press while using an autocomplete control, you need to use OnKeyUp.
+2
Cameron
source
to share