discordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teams
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
793 B
41 lines
793 B
9 years ago
|
/** */
|
||
|
Ext.define('Ext.aria.panel.Tool', {
|
||
|
override: 'Ext.panel.Tool',
|
||
|
|
||
|
requires: [
|
||
|
'Ext.aria.Component',
|
||
|
'Ext.util.KeyMap'
|
||
|
],
|
||
|
|
||
|
tabIndex: 0,
|
||
|
|
||
|
destroy: function() {
|
||
|
if (this.keyMap) {
|
||
|
this.keyMap.destroy();
|
||
|
}
|
||
|
|
||
|
this.callParent();
|
||
|
},
|
||
|
|
||
|
ariaAddKeyMap: function(params) {
|
||
|
var me = this;
|
||
|
|
||
|
me.keyMap = new Ext.util.KeyMap(Ext.apply({
|
||
|
target: me.el
|
||
|
}, params));
|
||
|
},
|
||
|
|
||
|
ariaGetRenderAttributes: function() {
|
||
|
var me = this,
|
||
|
attrs;
|
||
|
|
||
|
attrs = me.callParent(arguments);
|
||
|
|
||
|
if (me.tooltip && me.tooltipType === 'qtip') {
|
||
|
attrs['aria-label'] = me.tooltip;
|
||
|
}
|
||
|
|
||
|
return attrs;
|
||
|
}
|
||
|
});
|