MuK IT GmbH
6 years ago
5 changed files with 126 additions and 1 deletions
-
2muk_web_theme_mail/__manifest__.py
-
41muk_web_theme_mail/static/src/js/keyboard.js
-
45muk_web_theme_mail/static/src/xml/shortcuts.xml
-
38muk_web_theme_mail/static/src/xml/systray.xml
-
1muk_web_theme_mail/template/assets.xml
@ -0,0 +1,41 @@ |
|||
/********************************************************************************** |
|||
* |
|||
* Copyright (C) 2017 MuK IT GmbH |
|||
* |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU Affero General Public License as |
|||
* published by the Free Software Foundation, either version 3 of the |
|||
* License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU Affero General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU Affero General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
* |
|||
**********************************************************************************/ |
|||
|
|||
odoo.define('muk_web_theme.KeyboardNavigationMixin', function (require) { |
|||
"use strict"; |
|||
|
|||
var core = require('web.core'); |
|||
var config = require("web.config"); |
|||
var session = require("web.session"); |
|||
|
|||
var AbstractWebClient = require('web.AbstractWebClient'); |
|||
|
|||
var _t = core._t; |
|||
var QWeb = core.qweb; |
|||
|
|||
AbstractWebClient.include({ |
|||
_getAllUsedAccessKeys: function () { |
|||
var usedAccessKeys = this._super.apply(this, arguments); |
|||
console.log("usedAccessKeys", _.union(usedAccessKeys, ['M', 'T'])) |
|||
return _.union(usedAccessKeys, ['M', 'T']); |
|||
}, |
|||
}); |
|||
|
|||
}); |
|||
|
@ -0,0 +1,45 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
|
|||
<!-- |
|||
Copyright (C) 2018 MuK IT GmbH |
|||
|
|||
This program is free software: you can redistribute it and/or modify |
|||
it under the terms of the GNU Affero General Public License as |
|||
published by the Free Software Foundation, either version 3 of the |
|||
License, or (at your option) any later version. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU Affero General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Affero General Public License |
|||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
--> |
|||
|
|||
<templates id="template" xml:space="preserve"> |
|||
|
|||
<t t-extend="UserMenu.shortcuts"> |
|||
<t t-jquery="tbody" t-operation="append"> |
|||
<tr> |
|||
<td align="left">Open the activities</td> |
|||
<td> |
|||
<span class="o_key">Alt</span> + <span class="o_key">t</span> |
|||
</td> |
|||
<td> |
|||
<span class="o_key">Control</span> + <span class="o_key">Alt</span> + <span class="o_key">t</span> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td align="left">Open the messages</td> |
|||
<td> |
|||
<span class="o_key">Alt</span> + <span class="o_key">m</span> |
|||
</td> |
|||
<td> |
|||
<span class="o_key">Control</span> + <span class="o_key">Alt</span> + <span class="o_key">m</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</t> |
|||
|
|||
</templates> |
@ -0,0 +1,38 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
|
|||
<!-- |
|||
Copyright (C) 2018 MuK IT GmbH |
|||
|
|||
This program is free software: you can redistribute it and/or modify |
|||
it under the terms of the GNU Affero General Public License as |
|||
published by the Free Software Foundation, either version 3 of the |
|||
License, or (at your option) any later version. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU Affero General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Affero General Public License |
|||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
--> |
|||
|
|||
<templates id="template" xml:space="preserve"> |
|||
|
|||
<t t-extend="mail.systray.MessagingMenu"> |
|||
<t t-jquery="a.dropdown-toggle" t-operation="replace"> |
|||
<a class="dropdown-toggle o-no-caret" data-toggle="dropdown" data-display="static" aria-expanded="false" title="Conversations" href="#" role="button" accesskey="m"> |
|||
<i class="fa fa-comments" role="img" aria-label="Messages"/> <span class="o_notification_counter badge badge-pill"/> |
|||
</a> |
|||
</t> |
|||
</t> |
|||
|
|||
<t t-extend="mail.systray.ActivityMenu"> |
|||
<t t-jquery="a.dropdown-toggle" t-operation="replace"> |
|||
<a class="dropdown-toggle o-no-caret" data-toggle="dropdown" data-display="static" aria-expanded="false" title="Activities" href="#" role="button" accesskey="t"> |
|||
<i class="fa fa-clock-o" role="img" aria-label="Activities"/> <span class="o_notification_counter badge badge-pill"/> |
|||
</a> |
|||
</t> |
|||
</t> |
|||
|
|||
</templates> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue