diff options
author | Devine Lu Linvega <[email protected]> | 2019-02-18 13:20:48 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-02-18 13:20:48 +0900 |
commit | 66b318f58c538e5cfb11588780bdc102823e7473 (patch) | |
tree | 2a84bea1849438a3f10650f51fb7bfae85dd37b8 /desktop/sources/scripts/lib/controller.js | |
parent | b693918956dd4c2fcc3f7d10a18bec65a446e857 (diff) | |
download | Orca-66b318f58c538e5cfb11588780bdc102823e7473.tar.gz Orca-66b318f58c538e5cfb11588780bdc102823e7473.zip |
Minor Cleanup
Diffstat (limited to 'desktop/sources/scripts/lib/controller.js')
-rw-r--r-- | desktop/sources/scripts/lib/controller.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/desktop/sources/scripts/lib/controller.js b/desktop/sources/scripts/lib/controller.js index c7ed963..4924738 100644 --- a/desktop/sources/scripts/lib/controller.js +++ b/desktop/sources/scripts/lib/controller.js @@ -18,7 +18,7 @@ function Controller () { this.menu[mode][cat][label] = { fn: fn, accelerator: accelerator } } - this.add_role = function (mode, cat, label) { + this.addRole = function (mode, cat, label) { if (!this.menu[mode]) { this.menu[mode] = {} } if (!this.menu[mode][cat]) { this.menu[mode][cat] = {} } this.menu[mode][cat][label] = { role: label } @@ -55,7 +55,7 @@ function Controller () { this.app.injectMenu(this.format()) } - this.accelerator_for_key = function (key, menu) { + this.accelerator = function (key, menu) { const acc = { basic: null, ctrl: null } for (cat in menu) { const options = menu[cat] @@ -67,6 +67,11 @@ function Controller () { } return acc } + + this.docs = function () { + // TODO + console.log(this.menu.default) + } } module.exports = new Controller() |