mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 21:58:09 +08:00
[SSE] Fix focus in dialog
This commit is contained in:
@ -442,11 +442,14 @@ define([
|
||||
}
|
||||
},
|
||||
|
||||
onSelectSeries: function(listView, itemView, item) {
|
||||
onSelectSeries: function(listView, itemView, item, fromKeyDown) {
|
||||
if (item && item.get('controls')) {
|
||||
var controls = item.get('controls'),
|
||||
res = Common.UI.FocusManager.insert(this, [controls.combobox, controls.checkbox], -1 * this.getFooterButtons().length);
|
||||
(res!==undefined) && (controls.index = res);
|
||||
fromKeyDown && setTimeout(function(){
|
||||
listView.focus();
|
||||
}, 1);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -425,11 +425,14 @@ define(['common/main/lib/view/AdvancedSettingsWindow',
|
||||
}
|
||||
},
|
||||
|
||||
onSelectSeries: function(listView, itemView, item) {
|
||||
onSelectSeries: function(listView, itemView, item, fromKeyDown) {
|
||||
if (item && item.get('controls')) {
|
||||
var controls = item.get('controls'),
|
||||
res = Common.UI.FocusManager.insert(this, [controls.combobox, controls.checkbox], -1 * this.getFooterButtons().length);
|
||||
(res!==undefined) && (controls.index = res);
|
||||
fromKeyDown && setTimeout(function(){
|
||||
listView.focus();
|
||||
}, 1);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user