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