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 276473 | Differences between
and this patch

Collapse All | Expand All

(-)js/org/eclipse/swt/widgets/Combo.js (+9 lines)
Lines 67-72 Link Here
67
    this.addEventListener( "changeBackgroundColor",
67
    this.addEventListener( "changeBackgroundColor",
68
                           this._onChangeBackgoundColor, 
68
                           this._onChangeBackgoundColor, 
69
                           this );
69
                           this );
70
    this.addEventListener( "changeVisibility", this._onChangeVisibility, this );
70
    // Mouse events
71
    // Mouse events
71
    this.addEventListener( "mousedown", this._onMouseDown, this );
72
    this.addEventListener( "mousedown", this._onMouseDown, this );
72
    this.addEventListener( "mouseup", this._onMouseUp, this );
73
    this.addEventListener( "mouseup", this._onMouseUp, this );
Lines 96-101 Link Here
96
    this.removeEventListener( "changeBackgroundColor",
97
    this.removeEventListener( "changeBackgroundColor",
97
                              this._onChangeBackgoundColor, 
98
                              this._onChangeBackgoundColor, 
98
                              this );
99
                              this );
100
    this.removeEventListener( "changeVisibility", this._onChangeVisibility, this );
99
    this.removeEventListener( "mousedown", this._onMouseDown, this );
101
    this.removeEventListener( "mousedown", this._onMouseDown, this );
100
    this.removeEventListener( "mouseup", this._onMouseUp, this );
102
    this.removeEventListener( "mouseup", this._onMouseUp, this );
101
    this.removeEventListener( "click", this._onMouseClick, this );
103
    this.removeEventListener( "click", this._onMouseClick, this );
Lines 182-187 Link Here
182
      this._list.setBackgroundColor( value );
184
      this._list.setBackgroundColor( value );
183
    },
185
    },
184
    
186
    
187
    _onChangeVisibility : function( evt ) {
188
      var value = evt.getValue();
189
      if( !value && this._dropped ) {
190
        this._toggleListVisibility();
191
      }
192
    },
193
    
185
    _applyCursor : function( value, old ) {
194
    _applyCursor : function( value, old ) {
186
      this.base( arguments, value, old );
195
      this.base( arguments, value, old );
187
      if( value ) {
196
      if( value ) {

Return to bug 276473