forked from Techsystech/web
[IMP+FIX] web_responsive : fix shortcut display and add new shortcuts (u) for the User menu
parent
9091b0781e
commit
0a463c5c40
|
@ -1,6 +1,9 @@
|
||||||
The following keyboard shortcuts are implemented:
|
The following keyboard shortcuts are implemented:
|
||||||
|
|
||||||
* Toggle app drawer - ``Alt + Shift + H``
|
* Toggle app drawer - ``Alt + Shift + A``
|
||||||
* Navigate app search results - Arrow keys
|
* Navigate app search results - Arrow keys
|
||||||
* Choose app result - ``Enter``
|
* Choose app result - ``Enter``
|
||||||
* ``Esc`` to close app drawer
|
* ``Esc`` to close app drawer
|
||||||
|
|
||||||
|
|
||||||
|
Also you can access to the user menu, with ``Alt + Shift + U``
|
||||||
|
|
|
@ -1,10 +1,58 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<templates id="template" xml:space="preserve">
|
<templates id="template" xml:space="preserve">
|
||||||
|
|
||||||
|
<t t-extend="UserMenu">
|
||||||
|
<t t-jquery=".dropdown-toggle" t-operation="attributes">
|
||||||
|
<attribute name="accesskey">u</attribute>
|
||||||
|
</t>
|
||||||
|
</t>
|
||||||
|
|
||||||
<div t-extend="UserMenu.shortcuts">
|
<div t-extend="UserMenu.shortcuts">
|
||||||
|
<!-- Replace "a" shortcut by "e" (for 'Edit a Record') -->
|
||||||
|
<t t-jquery="table.o_shortcut_table > tbody > tr > td:nth-child(2) > span:nth-child(2).o_key:contains('a')" t-operation="replace">
|
||||||
|
<span class="o_key">e</span>
|
||||||
|
</t>
|
||||||
|
<t t-jquery="table.o_shortcut_table > tbody > tr > td:nth-child(3) > span:nth-child(3).o_key:contains('a')" t-operation="replace">
|
||||||
|
<span class="o_key">e</span>
|
||||||
|
</t>
|
||||||
|
|
||||||
|
<!-- Replace "j" shortcut by "d" (for 'Discard a record modification') -->
|
||||||
|
<t t-jquery="table.o_shortcut_table > tbody > tr > td:nth-child(2) > span:nth-child(2).o_key:contains('j')" t-operation="replace">
|
||||||
|
<span class="o_key">d</span>
|
||||||
|
</t>
|
||||||
|
<t t-jquery="table.o_shortcut_table > tbody > tr > td:nth-child(3) > span:nth-child(3).o_key:contains('j')" t-operation="replace">
|
||||||
|
<span class="o_key">d</span>
|
||||||
|
</t>
|
||||||
|
|
||||||
|
<!-- Add Shift for all windows / linux shortcuts -->
|
||||||
<t t-jquery="table.o_shortcut_table > tbody > tr > td:nth-child(2) > span:first-child" t-operation="after">
|
<t t-jquery="table.o_shortcut_table > tbody > tr > td:nth-child(2) > span:first-child" t-operation="after">
|
||||||
+ <span class="o_key">Shift</span>
|
+ <span class="o_key">Shift</span>
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
|
<!-- Add new accesskeys -->
|
||||||
|
<t t-jquery=".o_shortcut_table tbody" t-operation="append">
|
||||||
|
<tr>
|
||||||
|
<td align="left">Select menu</td>
|
||||||
|
<td>
|
||||||
|
<span class="o_key">Alt</span> + <span class="o_key">Shift</span> + <span class="o_key">a</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="o_key">Control</span> + <span class="o_key">Alt</span> + <span class="o_key">a</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</t>
|
||||||
|
|
||||||
|
<t t-jquery=".o_shortcut_table tbody" t-operation="append">
|
||||||
|
<tr>
|
||||||
|
<td align="left">User menu</td>
|
||||||
|
<td>
|
||||||
|
<span class="o_key">Alt</span> + <span class="o_key">Shift</span> + <span class="o_key">u</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="o_key">Control</span> + <span class="o_key">Alt</span> + <span class="o_key">u</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</t>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</templates>
|
</templates>
|
||||||
|
|
Loading…
Reference in New Issue