[DE] Bug 54255
This commit is contained in:
parent
e045c0f41c
commit
1422b8f772
|
@ -164,7 +164,7 @@ define([
|
|||
},
|
||||
|
||||
template: _.template([
|
||||
'<div class="treeview inner" style="<%= style %>"></div>'
|
||||
'<div class="treeview inner" style="<%= style %>" tabindex="0" data-hint="<%= options.dataHint %>" data-hint-direction="top" data-hint-offset="100,0"></div>'
|
||||
].join('')),
|
||||
|
||||
initialize : function(options) {
|
||||
|
|
|
@ -543,6 +543,13 @@ Common.UI.HintManager = new(function() {
|
|||
_hideHints();
|
||||
curr.focus();
|
||||
_resetToDefault();
|
||||
} else if (curr.hasClass('treeview')) {
|
||||
_hideHints();
|
||||
_resetToDefault();
|
||||
curr.trigger('hint:focus');
|
||||
setTimeout(function () {
|
||||
curr.focus();
|
||||
}, 10);
|
||||
} else {
|
||||
_isComplete = false;
|
||||
_hideHints();
|
||||
|
|
|
@ -110,6 +110,12 @@ define([
|
|||
},
|
||||
|
||||
onAfterRender: function(panelNavigation) {
|
||||
panelNavigation.viewNavigationList.cmpEl.on('hint:focus', '.treeview', _.bind(function (e) {
|
||||
this.api.asc_enableKeyEvents(false);
|
||||
$(e.currentTarget).on('keydown', _.bind(function (e) {
|
||||
console.log('keydown');
|
||||
}, this));
|
||||
}, this));
|
||||
panelNavigation.viewNavigationList.on('item:click', _.bind(this.onSelectItem, this));
|
||||
panelNavigation.viewNavigationList.on('item:contextmenu', _.bind(this.onItemContextMenu, this));
|
||||
panelNavigation.viewNavigationList.on('item:add', _.bind(this.onItemAdd, this));
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<button id="left-btn-chat" class="btn btn-category" data-hint="0" data-hint-direction="right" data-hint-offset="big" content-target="left-panel-chat"><i class="icon toolbar__icon btn-menu-chat"> </i></button>
|
||||
<!-- /** coauthoring end **/ -->
|
||||
<button id="left-btn-plugins" class="btn btn-category" data-hint="0" data-hint-direction="right" data-hint-offset="big" content-target=""><i class="icon toolbar__icon btn-menu-plugin"> </i></button>
|
||||
<button id="left-btn-navigation" class="btn btn-category" data-hint="0" data-hint-direction="right" data-hint-offset="big" content-target="" data-layout-name="leftMenu-navigation"><i class="icon toolbar__icon btn-menu-navigation"> </i></button>
|
||||
<button id="left-btn-navigation" class="btn btn-category" data-hint="0" data-hint-direction="right" data-hint-offset="big" content-target="left-panel-navigation" data-layout-name="leftMenu-navigation"><i class="icon toolbar__icon btn-menu-navigation"> </i></button>
|
||||
<button id="left-btn-thumbnails" class="btn btn-category" data-hint="0" data-hint-direction="right" data-hint-offset="big" content-target=""><i class="icon toolbar__icon btn-menu-thumbs"> </i></button>
|
||||
<button id="left-btn-support" class="btn btn-category" data-hint="0" data-hint-direction="right" data-hint-offset="big" content-target=""><i class="icon toolbar__icon btn-menu-support"> </i></button>
|
||||
<button id="left-btn-about" class="btn btn-category" data-hint="0" data-hint-direction="right" data-hint-offset="big" content-target=""><i class="icon toolbar__icon btn-menu-about"> </i></button>
|
||||
|
|
|
@ -77,6 +77,8 @@ define([
|
|||
cls: 'btn-toolbar',
|
||||
iconCls: 'toolbar__icon btn-close',
|
||||
hint: this.txtClosePanel,
|
||||
dataHint: '1',
|
||||
dataHintDirection: 'bottom'
|
||||
});
|
||||
|
||||
this.btnSettings = new Common.UI.Button({
|
||||
|
@ -155,7 +157,9 @@ define([
|
|||
value: 'wrap'
|
||||
}
|
||||
]
|
||||
})
|
||||
}),
|
||||
dataHint: '1',
|
||||
dataHintDirection: 'bottom'
|
||||
});
|
||||
this.btnSettingsMenu = this.btnSettings.menu;
|
||||
|
||||
|
@ -167,7 +171,8 @@ define([
|
|||
emptyItemText: this.txtEmptyItem,
|
||||
style: 'border: none;',
|
||||
delayRenderTips: true,
|
||||
minScrollbarLength: 25
|
||||
minScrollbarLength: 25,
|
||||
dataHint: '1'
|
||||
});
|
||||
|
||||
this.viewNavigationList.cmpEl.off('click');
|
||||
|
|
Loading…
Reference in a new issue