Refactoring
This commit is contained in:
parent
1ca9c3d6a1
commit
54e23daafd
|
@ -206,7 +206,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
focus: function() {
|
focus: function() {
|
||||||
this.cmpEl && this.cmpEl.focus();
|
$('button', this.cmpEl).focus();
|
||||||
},
|
},
|
||||||
|
|
||||||
onAfterKeydownMenu: function(e) {
|
onAfterKeydownMenu: function(e) {
|
||||||
|
|
|
@ -71,8 +71,6 @@ Common.UI.FocusManager = new(function() {
|
||||||
item.selector = '.radiobox';
|
item.selector = '.radiobox';
|
||||||
else if (field instanceof Common.UI.TreeView)
|
else if (field instanceof Common.UI.TreeView)
|
||||||
item.selector = '.treeview';
|
item.selector = '.treeview';
|
||||||
else if (field instanceof Common.UI.ColorButton)
|
|
||||||
item.selector = '.btn-group';
|
|
||||||
else if (field instanceof Common.UI.Button)
|
else if (field instanceof Common.UI.Button)
|
||||||
item.selector = 'button';
|
item.selector = 'button';
|
||||||
else
|
else
|
||||||
|
|
|
@ -679,11 +679,9 @@
|
||||||
.caret {
|
.caret {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.btn-group {
|
&:not(.disabled) {
|
||||||
&:focus, &:active, &.open {
|
&:focus, .btn-group.open &, .btn-group:active & {
|
||||||
.btn-color:not(.disabled) {
|
|
||||||
border-color: @border-control-focus-ie;
|
border-color: @border-control-focus-ie;
|
||||||
border-color: @border-control-focus;
|
border-color: @border-control-focus;
|
||||||
}
|
}
|
||||||
|
|
|
@ -379,6 +379,7 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
|
||||||
additionalAlign: this.menuAddAlign,
|
additionalAlign: this.menuAddAlign,
|
||||||
color: 'auto',
|
color: 'auto',
|
||||||
auto: true,
|
auto: true,
|
||||||
|
cls: 'move-focus',
|
||||||
takeFocusOnClose: true
|
takeFocusOnClose: true
|
||||||
});
|
});
|
||||||
this.colorsBorder = this.btnBorderColor.getPicker();
|
this.colorsBorder = this.btnBorderColor.getPicker();
|
||||||
|
@ -423,6 +424,7 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
|
||||||
parentEl: $('#paragraphadv-back-color-btn'),
|
parentEl: $('#paragraphadv-back-color-btn'),
|
||||||
transparent: true,
|
transparent: true,
|
||||||
additionalAlign: this.menuAddAlign,
|
additionalAlign: this.menuAddAlign,
|
||||||
|
cls: 'move-focus',
|
||||||
takeFocusOnClose: true
|
takeFocusOnClose: true
|
||||||
});
|
});
|
||||||
this.colorsBack = this.btnBackColor.getPicker();
|
this.colorsBack = this.btnBackColor.getPicker();
|
||||||
|
|
Loading…
Reference in a new issue