User Tag List

Results 1 to 5 of 5

Thread: Can't Detect Keyboard State When Opened By A Field In A Browser

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Kimera's Avatar
    Join Date
    Feb 2007
    Location
    Houston, TX
    Posts
    717
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Can't Detect Keyboard State When Opened By A Field In A Browser

    Just started a new mobile app where I am working with another developer. They wanted to use web forms inside the app but I am noticing that when you do the Android system does not detect the keyboard came out or is visible. I knew I had done this in the past so I made a test file. If you touch on the Google form to get the keyboard out the app keeps running but if you touch on the edit box the app now detects the keyboard and closes the app as designed. Is this a bug or is there a reason the app can not detect a browser opened the keyboard?
    Attached files Attached files

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    5,826
    Mentioned
    111 Post(s)
    Tagged
    2 Thread(s)
    the keyboard inisde a webview browser is entirely handle by WebView-android and not the Android runtime, so you must add some javascript code to do that.

    suggestion: get the focus in the field you want if focus is ON mean that keyboard is ON

    Important that target must be set above 26
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Kimera's Avatar
    Join Date
    Feb 2007
    Location
    Houston, TX
    Posts
    717
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks @Fernando , I will give that a try, not sure what the JS would look like but I bet I can figure it out!

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    5,826
    Mentioned
    111 Post(s)
    Tagged
    2 Thread(s)
    here you may find teh right idea

    https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event

    or here

    https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onfocus
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Kimera's Avatar
    Join Date
    Feb 2007
    Location
    Houston, TX
    Posts
    717
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks @Fernando , soon as I get my pc install stuff taken care of I will look in to that!

Similar Threads

  1. Replies: 6
    Last Post: 20th September 2017, 12:11 PM
  2. How can my app detect whenever my app is opened?
    By UnicornMan in forum iOS Export Module 2.5
    Replies: 1
    Last Post: 23rd December 2016, 01:23 PM
  3. detect keyboard typing in editbox
    By Nyc in forum Fusion 2.5
    Replies: 5
    Last Post: 27th March 2015, 12:07 PM
  4. I.Q. of a Field Mouse
    By kreeddem in forum WIP & Released Games & Apps
    Replies: 2
    Last Post: 16th February 2014, 10:10 AM
  5. Detect HTML5 Mobile Browser
    By DJFuego in forum HTML5 Export Module 2.5
    Replies: 0
    Last Post: 24th December 2013, 09:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •