Results 1 to 2 of 2

Thread: Keyboard completely stopped working ... no clue why.

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    160
    Answers
    8
    Vote Rating
    3
      0  

    Default Keyboard completely stopped working ... no clue why.

    Hey all, this is a doozy and I'm hoping someone has seen this before. I have no idea why, but my keyboard no longer works when I'm in a Sencha Touch app. This is in Chrome, Safari on my mac, and on my iPhone/iPad. In Safari I can't even apple-r or apple-t to refresh/newtab. (In Chrome, newtab works but refresh doesn't). The obvious stuff doesn't seem to apply:

    * not a mask, as buttons can be clicked/touched no problem
    * not a hardware issue, as I'm writing this with the very same keyboard
    * input fields aren't disabled
    * probably not ghost related, because I'm not afraid of no ghosts

    I haven't mucked with anything in the Sencha-debug-all.js files, or the css, or any of that stuff.

    I'm of course going to continue to try and figure this out, but if anyone has any other ideas or has seen this before, please let me know..!

    ST version 2.1.0

    edit: it looks like something is grabbing the focus out of the blue. Why or how this is happening, I haven't figured out yet. But if I domquery in the console and grab the first input and give it focus, I can then type. I'm still befuddled as to the cause.

    And resolved - I had created a

    Code:
    this.mask = new Ext.LoadMask(Ext.getBody(), {msg:"l_genericLoading..."});
    In a silly silly attempt at doing something and forgotten it there. Interestingly this makes the activeElement the body, and then mr keyboard just stops working. Removed, and it now works. Leaving this post in case someone else does something similar and their keyboard no longer works.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Ext.Mask (superclass of Ext.LoadMask) listens to all events on the element and stops the event. This is why the you couldn't type. I am surprised the browser lets you stop a refresh or new tab though.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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