[IMP] web: Shortcuts easier to use (lowercase)

By putting the shortcuts lowercase, it is easier to remember and to user.

Instead of Alt + Shift + letter, we have Alt + letter for Windows and Linus users
Instead of Control + Alt + Shift + letter, we have Control + Alt + letter for mac users

The combinations Alt + d and Alt + e are reserved to the browsers, so other letters are chosen
for these actions
This commit is contained in:
Yannick Tivisse
2016-04-27 14:14:54 +02:00
parent f321466a69
commit b0cfcfaf30
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ var row_decoration = [
var ListView = View.extend({
_template: 'ListView',
accesskey: "L",
accesskey: "l",
defaults: _.extend({}, View.prototype.defaults, {
// records can be selected one by one
selectable: true,
+9 -9
View File
@@ -358,14 +358,14 @@
<t t-if="!widget.no_leaf and widget.options.action_buttons !== false">
<div class="o_list_buttons">
<t t-if="widget.options.addable and widget.is_action_enabled('create')">
<button type="button" class="btn btn-primary btn-sm o_list_button_add" accesskey="C">
<button type="button" class="btn btn-primary btn-sm o_list_button_add" accesskey="c">
<t t-esc="widget.options.addable"/>
</button>
</t>
<button type="button" class="btn btn-primary btn-sm o_list_button_save" accesskey="S">
<button type="button" class="btn btn-primary btn-sm o_list_button_save" accesskey="s">
Save
</button>
<button type="button" class="btn btn-default btn-sm o_list_button_discard" accesskey="D">
<button type="button" class="btn btn-default btn-sm o_list_button_discard" accesskey="j">
Discard
</button>
</div>
@@ -430,21 +430,21 @@
<t t-name="FormView.buttons">
<div class="o_form_buttons_view">
<button t-if="widget.is_action_enabled('edit')" type="button"
class="btn btn-primary btn-sm o_form_button_edit" accesskey="E">
class="btn btn-primary btn-sm o_form_button_edit" accesskey="a">
Edit
</button>
<button t-if="widget.is_action_enabled('create')" type="button"
class="btn btn-default btn-sm o_form_button_create" accesskey="C">
class="btn btn-default btn-sm o_form_button_create" accesskey="c">
Create
</button>
</div>
<div class="o_form_buttons_edit">
<button type="button"
class="btn btn-primary btn-sm o_form_button_save" accesskey="S">
class="btn btn-primary btn-sm o_form_button_save" accesskey="s">
Save
</button>
<button type="button"
class="btn btn-default btn-sm o_form_button_cancel" accesskey="D">
class="btn btn-default btn-sm o_form_button_cancel" accesskey="j">
Discard
</button>
</div>
@@ -1233,8 +1233,8 @@
<span class="btn-group btn-group-sm">
<!-- accesskeys not wanted in X2Many widgets -->
<t t-if="!widget.getParent().x2m">
<t t-set="att_prev" t-value="{'accesskey': 'O'}" />
<t t-set="att_next" t-value="{'accesskey': 'P'}" />
<t t-set="att_prev" t-value="{'accesskey': 'p'}" />
<t t-set="att_next" t-value="{'accesskey': 'n'}" />
</t>
<button type="button" class="fa fa-chevron-left btn btn-icon o_pager_previous" t-att="att_prev"/>
<button type="button" class="fa fa-chevron-right btn btn-icon o_pager_next" t-att="att_next"/>
@@ -25,7 +25,7 @@ var ColumnQuickCreate = quick_create.ColumnQuickCreate;
var fields_registry = kanban_widgets.registry;
var KanbanView = View.extend({
accesskey: "K",
accesskey: "k",
className: "o_kanban_view",
custom_events: {
'kanban_record_open': 'open_record',
@@ -2,7 +2,7 @@
<t t-name="KanbanView.buttons">
<div>
<button type="button" class="btn btn-primary btn-sm o-kanban-button-new" accesskey="C">
<button type="button" class="btn btn-primary btn-sm o-kanban-button-new" accesskey="c">
<t t-esc="widget.options.create_text || _t('Create')"/>
</button>
</div>