(js,css) Improve display of keyboard shortcuts

pull/246/head
Francis Lachapelle 2018-11-06 10:23:37 -05:00
parent 8822f1ae53
commit c52a45e072
4 changed files with 14 additions and 5 deletions

1
NEWS
View File

@ -3,6 +3,7 @@
Enhancements
- [web] show source addressbook of matching contacts in appointment editor (#4579)
- [web] improve display of keyboard shortcuts
4.0.4 (2018-10-23)
------------------

View File

@ -143,6 +143,8 @@
/* Toggle visibility (ex: mail account in left navigation menu) */
"Toggle visibility" = "Toggle visibility";
"Keyboard Shortcuts" = "Keyboard Shortcuts";
/* Toggle multiple items at the same time (hotkeys cheatsheet) */
"Toggle range of items" = "Toggle range of items";
@ -152,6 +154,9 @@
/* Space key */
"key_space" = "space";
/* Delete key */
"key_delete" = "delete";
/* Shift and space key */
"key_shift+space" = "shift + space";
@ -174,7 +179,7 @@
"key_shift+down" = "shift + ↓";
/* Backspace key */
"key_backspace" = "backspace";
"key_backspace" = "";
/* Hotkey to start a search */
"hotkey_search" = "s";

View File

@ -421,13 +421,18 @@
escapeToClose: true,
template: [
'<md-dialog>',
' <md-toolbar class="md-hue-2">',
' <div class="md-toolbar-tools">',
' <div ng-bind="::\'Keyboard Shortcuts\' | loc"></div>',
' </div>',
' </md-toolbar>',
' <md-dialog-content>',
' <md-list>',
' <md-list-item ng-repeat="(hotkey, keys) in hotkeys">',
' <div class="sg-hotkey-container">',
' {{keys[0].description}}',
' <div class="md-secondary sg-hotkey-container">',
' <sg-hotkey>{{keys[0].lkey || hotkey}}</sg-hotkey>',
' </div>',
' {{keys[0].description}}',
' </md-list-item>',
' </md-list>',
' </md-dialog-content>',

View File

@ -2,7 +2,6 @@
.sg-hotkey-container {
display: inline;
margin-right: 1em;
text-align: right;
min-width: 7em;
}
@ -14,7 +13,6 @@ sg-hotkey {
box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;
color: #fff;
display: inline-block;
margin-right: 5px;
padding: 5px 9px;
text-align: center;
}