Add an example of binding a shortcut to an internal command (#1933)

* Add an example of binding to an internal command

* Update config.default.js
This commit is contained in:
Himura Kazuto 2018-04-05 21:38:49 +03:00 committed by Bryan Phelps
parent dca4841d2a
commit ea05be6363
1 changed files with 2 additions and 1 deletions

View File

@ -9,10 +9,11 @@ const activate = oni => {
//
// Add input bindings here:
//
oni.input.bind("<f11>", "oni.debug.openDevTools")
oni.input.bind("<c-enter>", () => console.log("Control+Enter was pressed"))
//
// Or remove the default bindings here by uncommenting the below line:
// Or remove the default bindings:
//
// oni.input.unbind("<c-p>")
}