Changes between Initial Version and Version 1 of Ticket #14053, comment 2


Ignore:
Timestamp:
Dec 15, 2011, 11:41:23 AM (9 years ago)
Author:
James Thomas
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14053, comment 2

    initial v1  
    11Looking into this, the TextBoxMixin's onFocus method expects the following arguments:
    22
     3
     4{{{
    35_onFocus: function(/*String*/ by){
    46}
     7}}}
     8
    59
    610which corresponds to the function being called by from "dijit/focus.js"
    711
     12{{{
     13
    814dijit/focus.js:
    915345:       widget._onFocus(by);
     16}}}
     17
    1018
    1119However, the Dojo Mobile input fields (TextArea & TextBox) don't use the focus manager to handle focus events, instead connecting directly to the "onfocus' event, as seen here:
     20
     21{{{
    1222
    132335:     postCreate: function(){
     
    162638:             this.connect(this.textbox, "onblur", "_onBlur");
    172739:     }
     28}}}
     29
    1830
    1931This causes the following clause in "_onFocus" to fail, not running the selection code to run, as by is the event object not a text string.