问题
I was noticing on certain application for wp7, that they were able to use the enter key on the keyboard to submit, but by default when you hit the enter key it goes to the next line. I was even noticing the enter key is different from the default enter key.
How do you submit, and if possible how do you change the way the enter key looks?
Any tips, answers or resources would be appreciated. Thanks.
回答1:
You need to change the InputScope
from "Text" and then capture the enter key on the KeyDown event.
回答2:
As Matt states, the keyboard layout depends on the InputScope
that you specify. You can find some illustrations of the different layouts on Jeff Blankenburg's blog.
If you're interested in using the Enter key to "tab" between input fields, there's a great behavior you can use.
回答3:
Correct me if I'm wrong, but it seems more standard (on a touch device) to trigger a submit/enter on the up/release. One benefit being, if you press on an adjacent key to the one intended, you can then drag over to it and release.
来源:https://stackoverflow.com/questions/5160884/how-to-enable-enter-button-on-keyboard-on-wp7