TextBox will not unfocus if using Touch Object

  • Problem Description

    If you click outside a textbox it will not call unfocus() if there is a Touch Object in your project. On Chrome, you will not be able to select a portion of what you typed.

    Attach a Capx

    dl.dropboxusercontent.com/u/22937829/bug_textbox.capx

    Description of Capx

    No events, just a textbox and a touch object.

    Steps to Reproduce Bug

    • Click on the canvas (not on the textbox)
    • Click on the textbox
    • Click outside the textbox

    Observed Result

    The texbox will not be unfocused. Moreover, in Chrome, you will not be able to select a portion of what you typed.

    Expected Result

    Call unfocus() when you click outside a textbox. Be able to select a portion of what you typed on Chrome when focused.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    C2 r163 (stable)

  • Thanks, should be fixed in the next build.

  • Thank you Ashley. However, it is still happening for me (r164.2). Can you confirm that you solved it ?

    Regards

  • Ashley This bug still seems apparent in r176 using Crosswalk, latest XDK. Also cannot tap on anything else whilst textbox is focused as it just brings up the keyboard...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You're right, looks like it was still an issue. I've tried again to fix it for the next build, hopefully r177 will resolve it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)