[DE] Add focus for TOC dialog
This commit is contained in:
parent
66089fee9d
commit
750a00a87e
|
@ -204,6 +204,7 @@ define([
|
||||||
style : 'width: 85px;',
|
style : 'width: 85px;',
|
||||||
menuStyle : 'min-width: 85px;',
|
menuStyle : 'min-width: 85px;',
|
||||||
editable : false,
|
editable : false,
|
||||||
|
takeFocusOnClose: true,
|
||||||
cls : 'input-group-nr',
|
cls : 'input-group-nr',
|
||||||
data : [
|
data : [
|
||||||
{ value: Asc.c_oAscTabLeader.None, displayValue: this.textNone },
|
{ value: Asc.c_oAscTabLeader.None, displayValue: this.textNone },
|
||||||
|
@ -271,6 +272,7 @@ define([
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
menuStyle: 'min-width: 100%;max-height: 233px;',
|
menuStyle: 'min-width: 100%;max-height: 233px;',
|
||||||
editable: false,
|
editable: false,
|
||||||
|
takeFocusOnClose: true,
|
||||||
data: []
|
data: []
|
||||||
});
|
});
|
||||||
this.cmbCaptions.on('selected', _.bind(function(combo, record) {
|
this.cmbCaptions.on('selected', _.bind(function(combo, record) {
|
||||||
|
@ -283,6 +285,7 @@ define([
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
menuStyle: 'min-width: 100%;max-height: 233px;',
|
menuStyle: 'min-width: 100%;max-height: 233px;',
|
||||||
editable: false,
|
editable: false,
|
||||||
|
takeFocusOnClose: true,
|
||||||
data: []
|
data: []
|
||||||
});
|
});
|
||||||
this.cmbTOFStyles.on('selected', _.bind(function(combo, record) {
|
this.cmbTOFStyles.on('selected', _.bind(function(combo, record) {
|
||||||
|
@ -373,6 +376,7 @@ define([
|
||||||
store: this.stylesLevels,
|
store: this.stylesLevels,
|
||||||
simpleAddMode: true,
|
simpleAddMode: true,
|
||||||
showLast: false,
|
showLast: false,
|
||||||
|
tabindex: 1,
|
||||||
template: _.template(['<div class="listview inner" style=""></div>'].join('')),
|
template: _.template(['<div class="listview inner" style=""></div>'].join('')),
|
||||||
itemTemplate: _.template([
|
itemTemplate: _.template([
|
||||||
'<div id="<%= id %>" class="list-item">',
|
'<div id="<%= id %>" class="list-item">',
|
||||||
|
@ -413,6 +417,7 @@ define([
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
menuStyle: 'min-width: 95px;',
|
menuStyle: 'min-width: 95px;',
|
||||||
editable: false,
|
editable: false,
|
||||||
|
takeFocusOnClose: true,
|
||||||
data: arr
|
data: arr
|
||||||
});
|
});
|
||||||
this.cmbStyles.setValue(this.type==1 ? Asc.c_oAscTOFStylesType.Current : Asc.c_oAscTOCStylesType.Current);
|
this.cmbStyles.setValue(this.type==1 ? Asc.c_oAscTOFStylesType.Current : Asc.c_oAscTOCStylesType.Current);
|
||||||
|
@ -447,12 +452,17 @@ define([
|
||||||
this.afterRender();
|
this.afterRender();
|
||||||
},
|
},
|
||||||
|
|
||||||
afterRender: function() {
|
getFocusedComponents: function() {
|
||||||
this._setDefaults(this.props);
|
return [ this.chPages, this.chAlign, this.cmbLeader, this.chLinks, this.spnLevels, this.stylesList, this.cmbStyles,
|
||||||
|
this.cmbCaptions, this.cmbTOFStyles, this.chFullCaption];
|
||||||
},
|
},
|
||||||
|
|
||||||
show: function() {
|
getDefaultFocusableComponent: function () {
|
||||||
Common.Views.AdvancedSettingsWindow.prototype.show.apply(this, arguments);
|
return this.chPages;
|
||||||
|
},
|
||||||
|
|
||||||
|
afterRender: function() {
|
||||||
|
this._setDefaults(this.props);
|
||||||
},
|
},
|
||||||
|
|
||||||
close: function() {
|
close: function() {
|
||||||
|
|
Loading…
Reference in a new issue