mirror of https://github.com/onivim/oni.git
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:
parent
dca4841d2a
commit
ea05be6363
|
@ -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>")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue