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

Collapse All | Expand All

(-)js/org/eclipse/swt/widgets/DateTimeDate.js (-3 / +3 lines)
Lines 128-134 Link Here
128
    this._spinner.setMax( 12 );
128
    this._spinner.setMax( 12 );
129
    this._spinner.setValue( this._monthInt );
129
    this._spinner.setValue( this._monthInt );
130
    this._spinner.addEventListener( "change",  this._onSpinnerChange, this );
130
    this._spinner.addEventListener( "change",  this._onSpinnerChange, this );
131
    this._spinner._textfield.setTabIndex( -1 );
131
    this._spinner._textfield.setTabIndex( null );
132
    // Hack to prevent the spinner text field to request the focus
132
    // Hack to prevent the spinner text field to request the focus
133
    this._spinner._textfield.setFocused = function() {};
133
    this._spinner._textfield.setFocused = function() {};
134
    // Solution for Bug 284021
134
    // Solution for Bug 284021
Lines 155-161 Link Here
155
      this.addEventListener( "mouseout", this._onMouseOut, this );
155
      this.addEventListener( "mouseout", this._onMouseOut, this );
156
      this._dropDownButton = new qx.ui.form.Button();
156
      this._dropDownButton = new qx.ui.form.Button();
157
      this._dropDownButton.setAppearance( "datetime-drop-down-button" );
157
      this._dropDownButton.setAppearance( "datetime-drop-down-button" );
158
      this._dropDownButton.setTabIndex( -1 );
158
      this._dropDownButton.setTabIndex( null );
159
      this._dropDownButton.setAllowStretchY( true );
159
      this._dropDownButton.setAllowStretchY( true );
160
      this.add( this._dropDownButton );
160
      this.add( this._dropDownButton );
161
      // Get names of weekdays and months
161
      // Get names of weekdays and months
Lines 164-170 Link Here
164
      this._calendar = new org.eclipse.swt.widgets.Calendar();
164
      this._calendar = new org.eclipse.swt.widgets.Calendar();
165
      this._calendar.setAppearance( "datetime-drop-down-calendar" );
165
      this._calendar.setAppearance( "datetime-drop-down-calendar" );
166
      this._calendar.setDate( new Date( 70, 0, 1 ) );
166
      this._calendar.setDate( new Date( 70, 0, 1 ) );
167
      this._calendar.setTabIndex( -1 );
167
      this._calendar.setTabIndex( null );
168
      this._calendar.setVisibility( false );
168
      this._calendar.setVisibility( false );
169
      // TODO: [if] Calendar buttons tooltips have wrong z-index
169
      // TODO: [if] Calendar buttons tooltips have wrong z-index
170
      // Remove tooltips for now.
170
      // Remove tooltips for now.
(-)js/org/eclipse/swt/widgets/List.js (-1 / +1 lines)
Lines 76-82 Link Here
76
          // prevent items from being drawn outside the list
76
          // prevent items from being drawn outside the list
77
          item.setOverflow( qx.constant.Style.OVERFLOW_HIDDEN );
77
          item.setOverflow( qx.constant.Style.OVERFLOW_HIDDEN );
78
          item.setContextMenu( this.getContextMenu() );
78
          item.setContextMenu( this.getContextMenu() );
79
          item.setTabIndex( -1 );
79
          item.setTabIndex( null );
80
          item.setLabel( "(empty)" );
80
          item.setLabel( "(empty)" );
81
          item.getLabelObject().setMode( qx.constant.Style.LABEL_MODE_HTML );
81
          item.getLabelObject().setMode( qx.constant.Style.LABEL_MODE_HTML );
82
          item.setLabel( items[ i ] );
82
          item.setLabel( items[ i ] );
(-)js/org/eclipse/swt/widgets/Calendar.js (-4 / +4 lines)
Lines 71-98 Link Here
71
      show    : 'icon',
71
      show    : 'icon',
72
      toolTip : this._lastYearBtToolTip,
72
      toolTip : this._lastYearBtToolTip,
73
      spacing : 0,
73
      spacing : 0,
74
      tabIndex: -1
74
      tabIndex: null
75
    });
75
    });
76
    lastYearBt.setUserData( "calendar-button", true );
76
    lastYearBt.setUserData( "calendar-button", true );
77
77
78
    lastMonthBt.set({
78
    lastMonthBt.set({
79
      show    : 'icon',
79
      show    : 'icon',
80
      toolTip : this._lastMonthBtToolTip,
80
      toolTip : this._lastMonthBtToolTip,
81
      tabIndex: -1
81
      tabIndex: null
82
    });
82
    });
83
    lastMonthBt.setUserData( "calendar-button", true );
83
    lastMonthBt.setUserData( "calendar-button", true );
84
84
85
    nextMonthBt.set({
85
    nextMonthBt.set({
86
      show    : 'icon',
86
      show    : 'icon',
87
      toolTip : this._nextMonthBtToolTip,
87
      toolTip : this._nextMonthBtToolTip,
88
      tabIndex: -1
88
      tabIndex: null
89
    });
89
    });
90
    nextMonthBt.setUserData( "calendar-button", true );
90
    nextMonthBt.setUserData( "calendar-button", true );
91
91
92
    nextYearBt.set({
92
    nextYearBt.set({
93
      show    : 'icon',
93
      show    : 'icon',
94
      toolTip : this._nextYearBtToolTip,
94
      toolTip : this._nextYearBtToolTip,
95
      tabIndex: -1
95
      tabIndex: null
96
    });
96
    });
97
    nextYearBt.setUserData( "calendar-button", true );
97
    nextYearBt.setUserData( "calendar-button", true );
98
98
(-)js/org/eclipse/swt/widgets/DateTimeCalendar.js (-1 / +1 lines)
Lines 29-35 Link Here
29
    this._calendar = new org.eclipse.swt.widgets.Calendar();
29
    this._calendar = new org.eclipse.swt.widgets.Calendar();
30
    this._calendar.addEventListener( "changeDate", this._onChangeDate, this );
30
    this._calendar.addEventListener( "changeDate", this._onChangeDate, this );
31
    this._calendar.setDate( new Date( 74, 5, 6 ) );
31
    this._calendar.setDate( new Date( 74, 5, 6 ) );
32
    this._calendar.setTabIndex( -1 );
32
    this._calendar.setTabIndex( null );
33
    this.add( this._calendar );
33
    this.add( this._calendar );
34
    
34
    
35
    this.addEventListener( "contextmenu", this._onContextMenu, this );
35
    this.addEventListener( "contextmenu", this._onContextMenu, this );
(-)js/org/eclipse/swt/widgets/DateTimeTime.js (-1 / +1 lines)
Lines 83-89 Link Here
83
    this._spinner.setMax( 23 );
83
    this._spinner.setMax( 23 );
84
    this._spinner.setValue( 0 );
84
    this._spinner.setValue( 0 );
85
    this._spinner.addEventListener( "change",  this._onSpinnerChange, this );
85
    this._spinner.addEventListener( "change",  this._onSpinnerChange, this );
86
    this._spinner._textfield.setTabIndex( -1 );
86
    this._spinner._textfield.setTabIndex( null );
87
    // Hack to prevent the spinner text field to request the focus
87
    // Hack to prevent the spinner text field to request the focus
88
    this._spinner._textfield.setFocused = function() {};
88
    this._spinner._textfield.setFocused = function() {};
89
    // Solution for Bug 284021
89
    // Solution for Bug 284021
(-)js/org/eclipse/swt/widgets/Combo.js (-3 / +3 lines)
Lines 36-52 Link Here
36
    this._listItemHeight = "auto";
36
    this._listItemHeight = "auto";
37
    // Text field
37
    // Text field
38
    this._field = new qx.ui.form.TextField();
38
    this._field = new qx.ui.form.TextField();
39
    this._field.setTabIndex( -1 );
39
    this._field.setTabIndex( null );
40
    this._field.setAllowStretchY( true );
40
    this._field.setAllowStretchY( true );
41
    this.add( this._field );
41
    this.add( this._field );
42
    // Drop down button
42
    // Drop down button
43
    this._button = new qx.ui.form.Button();
43
    this._button = new qx.ui.form.Button();
44
    this._button.setTabIndex( -1 );
44
    this._button.setTabIndex( null );
45
    this._button.setAllowStretchY( true );
45
    this._button.setAllowStretchY( true );
46
    this.add( this._button );
46
    this.add( this._button );
47
    // List
47
    // List
48
    this._list = new qx.ui.form.List();
48
    this._list = new qx.ui.form.List();
49
    this._list.setTabIndex( -1 );
49
    this._list.setTabIndex( null );
50
    this._list.setDisplay( false );
50
    this._list.setDisplay( false );
51
    this._list.setWidth( "auto" );
51
    this._list.setWidth( "auto" );
52
    // List Manager
52
    // List Manager
(-)js/org/eclipse/swt/widgets/Spinner.js (-1 / +1 lines)
Lines 25-31 Link Here
25
    this._textfield.addEventListener( "keyinput", this._onChangeValue, this );
25
    this._textfield.addEventListener( "keyinput", this._onChangeValue, this );
26
    this._textfield.addEventListener( "blur", this._onChangeValue, this );
26
    this._textfield.addEventListener( "blur", this._onChangeValue, this );
27
    this._textfield.addEventListener( "keydown", this._onKeyDown, this );
27
    this._textfield.addEventListener( "keydown", this._onKeyDown, this );
28
    this._textfield.setTabIndex( -1 );
28
    this._textfield.setTabIndex( null );
29
    this.addEventListener( "changeEnabled", this._onChangeEnabled, this );
29
    this.addEventListener( "changeEnabled", this._onChangeEnabled, this );
30
  },
30
  },
31
31
(-)js/org/eclipse/swt/widgets/Link.js (-2 / +2 lines)
Lines 74-80 Link Here
74
    },
74
    },
75
    
75
    
76
  	_onAppear : function( evt ) {
76
  	_onAppear : function( evt ) {
77
      this._link.setTabIndex( -1 );
77
      this._link.setTabIndex( null );
78
      this._link.setHideFocus( true );
78
      this._link.setHideFocus( true );
79
      this._applyHyperlinksStyleProperties();
79
      this._applyHyperlinksStyleProperties();
80
      this._addEventListeners();
80
      this._addEventListeners();
Lines 139-145 Link Here
139
    applyText : function() {
139
    applyText : function() {
140
      this._link.setHtml( this._text );
140
      this._link.setHtml( this._text );
141
      if ( this._linksCount == 0 ) {
141
      if ( this._linksCount == 0 ) {
142
        this.setTabIndex( -1 );
142
        this.setTabIndex( null );
143
      } else {
143
      } else {
144
        this.setTabIndex( 1 );
144
        this.setTabIndex( 1 );
145
      }
145
      }
(-)js/org/eclipse/swt/widgets/Slider.js (-2 / +2 lines)
Lines 78-84 Link Here
78
    this._thumbOffset = 0;
78
    this._thumbOffset = 0;
79
    // Min button
79
    // Min button
80
    this._minButton = new qx.ui.form.Button();
80
    this._minButton = new qx.ui.form.Button();
81
    this._minButton.setTabIndex( -1 );
81
    this._minButton.setTabIndex( null );
82
    if( this._horizontal ) {
82
    if( this._horizontal ) {
83
      this._minButton.addState( org.eclipse.swt.widgets.Slider.STATE_HORIZONTAL );
83
      this._minButton.addState( org.eclipse.swt.widgets.Slider.STATE_HORIZONTAL );
84
    } else {
84
    } else {
Lines 100-106 Link Here
100
    this.add( this._minButton );
100
    this.add( this._minButton );
101
    // Max button
101
    // Max button
102
    this._maxButton = new qx.ui.form.Button();
102
    this._maxButton = new qx.ui.form.Button();
103
    this._maxButton.setTabIndex( -1 );
103
    this._maxButton.setTabIndex( null );
104
    if( this._horizontal ) {
104
    if( this._horizontal ) {
105
      this._maxButton.addState( org.eclipse.swt.widgets.Slider.STATE_HORIZONTAL );
105
      this._maxButton.addState( org.eclipse.swt.widgets.Slider.STATE_HORIZONTAL );
106
    } else {
106
    } else {
(-)js/org/eclipse/rwt/widgets/Button.js (-1 / +1 lines)
Lines 34-40 Link Here
34
34
35
    tabIndex : {
35
    tabIndex : {
36
      refine : true,
36
      refine : true,
37
      init : -1
37
      init : null
38
    }
38
    }
39
        
39
        
40
  },
40
  },
(-)js/org/eclipse/swt/TabUtil.js (-1 / +1 lines)
Lines 14-20 Link Here
14
  statics : {
14
  statics : {
15
    createTabItem : function( id, parentId, index ) {
15
    createTabItem : function( id, parentId, index ) {
16
      var tabButton = new qx.ui.pageview.tabview.Button();
16
      var tabButton = new qx.ui.pageview.tabview.Button();
17
      tabButton.setTabIndex( -1 );
17
      tabButton.setTabIndex( null );
18
      tabButton.setLabel( "(empty)" );
18
      tabButton.setLabel( "(empty)" );
19
      tabButton.getLabelObject().setMode( "html" ); 
19
      tabButton.getLabelObject().setMode( "html" ); 
20
      tabButton.setLabel( "" );
20
      tabButton.setLabel( "" );
(-)js/org/eclipse/swt/custom/CTabItem.js (-1 / +1 lines)
Lines 23-29 Link Here
23
    this.setVerticalChildrenAlign( qx.constant.Layout.ALIGN_MIDDLE );
23
    this.setVerticalChildrenAlign( qx.constant.Layout.ALIGN_MIDDLE );
24
    this.setHorizontalChildrenAlign( qx.constant.Layout.ALIGN_LEFT );
24
    this.setHorizontalChildrenAlign( qx.constant.Layout.ALIGN_LEFT );
25
    this.setOverflow( qx.constant.Style.OVERFLOW_HIDDEN );
25
    this.setOverflow( qx.constant.Style.OVERFLOW_HIDDEN );
26
    this.setTabIndex( -1 );
26
    this.setTabIndex( null );
27
    // Set the label part to 'html mode'
27
    // Set the label part to 'html mode'
28
    this.setLabel( "(empty)" );
28
    this.setLabel( "(empty)" );
29
    this.getLabelObject().setMode( qx.constant.Style.LABEL_MODE_HTML );
29
    this.getLabelObject().setMode( qx.constant.Style.LABEL_MODE_HTML );

Return to bug 293867