(js,css) Improve keyboard shortcuts

- Defined some hotkeys in all modules;
- Added generation of cheat sheet.
This commit is contained in:
Francis Lachapelle committed 2016-09-27 16:16:09 -04:00
1 parent 13dd21bebb
commit 57a735753f
21 files changed
+630 -74

No files matched your search

@@ -39,6 +39,8 @@
vm.convertToEvent = convertToEvent;
vm.convertToTask = convertToTask;
_registerHotkeys(hotkeys);
// One-way refresh of the parent window when modifying the message from a popup window.
if ($window.opener) {
// Update the message flags. The message must be displayed in the parent window.
@@ -100,8 +102,6 @@
});
});
_registerHotkeys(hotkeys);
function _registerHotkeys(keys) {
keys.push(sgHotkeys.createHotkey({
@@ -114,7 +114,7 @@
}));
// Register the hotkeys
_.forEach(hotkeys, function(key) {
_.forEach(keys, function(key) {
sgHotkeys.registerHotkey(key);
});
}