Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 289398 | Differences between
and this patch

Collapse All | Expand All

(-)js/org/eclipse/swt/widgets/Combo.js (-1 / +7 lines)
Lines 33-38 Link Here
33
    this._borderWidth = 0;
33
    this._borderWidth = 0;
34
    this._selectionStart = 0;
34
    this._selectionStart = 0;
35
    this._selectionLength = 0;
35
    this._selectionLength = 0;
36
    this._serverSelected = false;
36
    this._listItemHeight = "auto";
37
    this._listItemHeight = "auto";
37
    // Text field
38
    // Text field
38
    this._field = new qx.ui.form.TextField();
39
    this._field = new qx.ui.form.TextField();
Lines 353-359 Link Here
353
        var fieldValue = value.getLabel().toString();
354
        var fieldValue = value.getLabel().toString();
354
        this._field.setValue( this._formatText( fieldValue ) );
355
        this._field.setValue( this._formatText( fieldValue ) );
355
        if( this._field.isCreated() ) {
356
        if( this._field.isCreated() ) {
356
          this._field.selectAll();
357
          if( !this._serverSelected ){
358
            this._field.selectAll();
359
          } else {
360
            this._serverSelected = false;
361
          }
357
          if( !org_eclipse_rap_rwt_EventUtil_suspend ) {
362
          if( !org_eclipse_rap_rwt_EventUtil_suspend ) {
358
            this._handleSelectionChange();
363
            this._handleSelectionChange();
359
          }
364
          }
Lines 746-751 Link Here
746
      if( index >= 0 && index <= items.length - 1 ) {
751
      if( index >= 0 && index <= items.length - 1 ) {
747
        item = items[ index ];
752
        item = items[ index ];
748
      }
753
      }
754
      this._serverSelected = true;
749
      this._setSelected( item );
755
      this._setSelected( item );
750
    },
756
    },
751
757

Return to bug 289398