Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-3109

Blur & MODAL_PRESENTATION_FORMSHEET == Keyboard not hiding.

    Details

      Description

      {html}<div><p>I've found out that when a textField is on a modal window, with
      a modalStyle set to the constant of
      <strong>Titanium.UI.iPhone.MODAL_PRESENTATION_FORMSHEET</strong>
      the keyboard is not able to loose focus properly.</p>
      <p>What happens when blur() is called is cursor focus is lost from
      the textField yet the keyboard remains on the screen and is
      unresponsive to touch events. I have written a small app.js so that
      this bug can be reproduced.</p>
      <p>Running Titanium Developer v1.2.2 on OSX 10.6.6 and Titanium SDK
      v1.5.1 on an iPad Project (simulator and device). I'm 99.9% sure
      it's this line<br>
      <em>"modalStyle:
      Titanium.UI.iPhone.MODAL_PRESENTATION_FORMSHEET"</em> as removing
      it fixes the problem.</p>
      <pre>
      <code class="javascript">var window = Titanium.UI.createWindow({ backgroundColor: '#eee' });

      var textField = Titanium.UI.createTextField({ height:35, top:300, width:350, borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED });

      textField.addEventListener('return', function(e) { textField.blur(); });

      window.add(textField);
      window.open({ modal:true, modalTransitionStyle: Titanium.UI.iPhone.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, modalStyle: Titanium.UI.iPhone.MODAL_PRESENTATION_FORMSHEET });</code>
      </pre></div>{html}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                blainhamon Blain Hamon
                Reporter:
                samjordan Sam Jordan
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-2694
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration