mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-29 02:30:03 +00:00
feat: add button to reset all keyboard shortcuts
This commit is contained in:
parent
30070c73aa
commit
c3538cd89c
2 changed files with 12 additions and 2 deletions
|
|
@ -190,3 +190,9 @@
|
|||
ng-model="vm.keys.taskOpenOriginalLink">
|
||||
</md-input-container>
|
||||
</div>
|
||||
|
||||
<md-button class="md-raised md-primary"
|
||||
ng-click="vm.resetAllShortcuts()">
|
||||
<ng-md-icon icon="undo"></ng-md-icon>
|
||||
Reset all shortcuts
|
||||
</md-button>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* # keyboardSettings
|
||||
*/
|
||||
|
||||
(function () {
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
}
|
||||
|
||||
/* @ngInject */
|
||||
function KeyboardSettingsCtrl(IS_ELECTRON) {
|
||||
function KeyboardSettingsCtrl(IS_ELECTRON, LS_DEFAULTS) {
|
||||
let vm = this;
|
||||
const IPC_REGISTER_GLOBAL_SHORTCUT_EVENT = 'REGISTER_GLOBAL_SHORTCUT';
|
||||
|
||||
|
|
@ -40,6 +40,10 @@
|
|||
window.ipcRenderer.send(IPC_REGISTER_GLOBAL_SHORTCUT_EVENT, globalShowHide);
|
||||
}
|
||||
};
|
||||
|
||||
vm.resetAllShortcuts = () => {
|
||||
vm.keys = LS_DEFAULTS.keys;
|
||||
};
|
||||
}
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue