[DE PE SSE] Bug 54241
This commit is contained in:
parent
51942c7e02
commit
7dd6e0fd34
|
@ -72,6 +72,8 @@ define([
|
||||||
me.btnDarkDocument.on('click', _.bind(function () {
|
me.btnDarkDocument.on('click', _.bind(function () {
|
||||||
me.fireEvent('darkmode:change');
|
me.fireEvent('darkmode:change');
|
||||||
}, me));
|
}, me));
|
||||||
|
me.cmbZoom.on('combo:focusin', _.bind(this.onComboOpen, this, false));
|
||||||
|
me.cmbZoom.on('show:after', _.bind(this.onComboOpen, this, true));
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function (options) {
|
initialize: function (options) {
|
||||||
|
@ -239,6 +241,14 @@ define([
|
||||||
this.btnNavigation && this.btnNavigation.toggle(state, true);
|
this.btnNavigation && this.btnNavigation.toggle(state, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onComboOpen: function (needfocus, combo) {
|
||||||
|
_.delay(function() {
|
||||||
|
var input = $('input', combo.cmpEl).select();
|
||||||
|
if (needfocus) input.focus();
|
||||||
|
else if (!combo.isMenuOpen()) input.one('mouseup', function (e) { e.preventDefault(); });
|
||||||
|
}, 10);
|
||||||
|
},
|
||||||
|
|
||||||
textNavigation: 'Navigation',
|
textNavigation: 'Navigation',
|
||||||
textZoom: 'Zoom',
|
textZoom: 'Zoom',
|
||||||
textFitToPage: 'Fit To Page',
|
textFitToPage: 'Fit To Page',
|
||||||
|
|
|
@ -69,6 +69,8 @@ define([
|
||||||
me.chNotes && me.chNotes.on('change', _.bind(function (checkbox, state) {
|
me.chNotes && me.chNotes.on('change', _.bind(function (checkbox, state) {
|
||||||
me.fireEvent('notes:change', [me.chNotes, state === 'checked']);
|
me.fireEvent('notes:change', [me.chNotes, state === 'checked']);
|
||||||
}, me));
|
}, me));
|
||||||
|
me.cmbZoom.on('combo:focusin', _.bind(this.onComboOpen, this, false));
|
||||||
|
me.cmbZoom.on('show:after', _.bind(this.onComboOpen, this, true));
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function (options) {
|
initialize: function (options) {
|
||||||
|
@ -218,6 +220,14 @@ define([
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onComboOpen: function (needfocus, combo) {
|
||||||
|
_.delay(function() {
|
||||||
|
var input = $('input', combo.cmpEl).select();
|
||||||
|
if (needfocus) input.focus();
|
||||||
|
else if (!combo.isMenuOpen()) input.one('mouseup', function (e) { e.preventDefault(); });
|
||||||
|
}, 10);
|
||||||
|
},
|
||||||
|
|
||||||
textZoom: 'Zoom',
|
textZoom: 'Zoom',
|
||||||
textFitToSlide: 'Fit To Slide',
|
textFitToSlide: 'Fit To Slide',
|
||||||
textFitToWidth: 'Fit To Width',
|
textFitToWidth: 'Fit To Width',
|
||||||
|
|
|
@ -90,7 +90,8 @@ define([
|
||||||
me.fireEvent('zoom:changedafter', [false, combo, record]);
|
me.fireEvent('zoom:changedafter', [false, combo, record]);
|
||||||
}).on('combo:blur', function () {
|
}).on('combo:blur', function () {
|
||||||
me.fireEvent('editcomplete', me);
|
me.fireEvent('editcomplete', me);
|
||||||
});
|
}).on('combo:focusin', _.bind(this.onComboOpen, this, false))
|
||||||
|
.on('show:after', _.bind(this.onComboOpen, this, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -402,6 +403,14 @@ define([
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onComboOpen: function (needfocus, combo) {
|
||||||
|
_.delay(function() {
|
||||||
|
var input = $('input', combo.cmpEl).select();
|
||||||
|
if (needfocus) input.focus();
|
||||||
|
else if (!combo.isMenuOpen()) input.one('mouseup', function (e) { e.preventDefault(); });
|
||||||
|
}, 10);
|
||||||
|
},
|
||||||
|
|
||||||
capBtnSheetView: 'Sheet View',
|
capBtnSheetView: 'Sheet View',
|
||||||
capBtnFreeze: 'Freeze Panes',
|
capBtnFreeze: 'Freeze Panes',
|
||||||
textZoom: 'Zoom',
|
textZoom: 'Zoom',
|
||||||
|
|
Loading…
Reference in a new issue