I have a simple input form that has a textbox and an "OK / cancel" button. To save the user some taps, when the page is shown, I get the focus on the text box, so the keyboard pops up. At this point, I want to cancel the "back" button and behave in the same way as navigating back, but what really happens, without focusing the text box, even removing even without fireworks event
Then I have two questions
- How to return "back" button even when the keyboard is visible?
- Am I trying to do something bad from the point of view of WP7 interaction design?
What you can do, control the keyup method of the text box. When a key is pressed, check whether it is a hardware back key or not. In my test, the hardware back has a PlatformKeyCode
27. I'm not sure that this change occurs between the hardware device. However, assuming not so, you can do the following:
Private Zero Text Box (Language Sender, System.index.exe.qualityErgusE) {if (e.PlatformKeyCode == 27 ) {// Navigation Code}}
Whether it's a good idea or not, I'm not sure. In relation to the on-screen keyboard, the primary function of the previous key is to turn the keyboard off. This is what users will most experience in different applications, so that they can expect you, however, since you are automatically displaying SIP, I think you can argue that this is only a part of the layout. I could not see anything about it, but if I miss something, then I should read.
Comments
Post a Comment