-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Touch device support #22
Comments
Thanks ! Actually it supports touch devices. It still has some problems and some things still has to be done in zebra. But iOS works almost perfect, Android, because of "zoo" of different browsers require more work, but also support touch screen. Win8 doesn't work. I don't know why since I don't have win8 device to test it. I hope the reason is simple: zebra detects win8 device as a device that doesn't have touch screen. |
Zebra rocks! Thank you, @barmalei ! Is there an example of how to get the iphone keyboard to come up? I cannot seem to edit any of the text entry boxes on the mobile examples in my iphone. For example, the text box at the bottom of this demo: Thanks!! Jason |
Interesting: 2 of the 3 text fields being up the iphone keyboard in this demo: http://repo.zebkit.org/latest/samples/embeddedHtml.html The ones marked html input and html text area work. The one labelled zebra text area does not bring up my iphone keyboard. |
The problem is zebra text input component (zebra.ui.TextField) cannot be used to initiate virtual keyboard input. On mobile devices only native text input element triggers VM appearing. I have tried to initiate VK showing by adding invisible text input element and than catch keyboard events to understand what has been entered, but on android the key events in most cases don't supply a character (or character code) that has been pressed ! So, a workaround is using original text input element within zebra UI layout. It is done by using "zebra.ui.HtmlTextField" (instead of zebra.ui.TextField ) component that is zebra wrapper for input text element. It has number of restriction (for instance you cannot use it in popup), but in general it fixes problem. I am working to eliminate the restrictions in next zebra version. |
Hi @barmalei , |
At least developer version of zekit has VK component: |
Supernice @barmalei ! |
|
First of all, excellent work! Sad that it does not yet support touch devices - tested on Windows 8 and Windows Phone 8, clicks/taps are handled very erratically.
See http://blogs.msdn.com/b/ie/archive/2011/10/19/handling-multi-touch-and-mouse-input-in-all-browsers.aspx and http://blogs.windows.com/windows_phone/b/wpdev/archive/2012/11/15/adapting-your-webkit-optimized-site-for-internet-explorer-10.aspx - should be straightforward to implement.
Also, it would be interesting to have a soft-keyboard handled by Zebkit itself - to resolve problems observed with Android fullscreen webapps, for example.
The text was updated successfully, but these errors were encountered: