Merge pull request #474 from NicolaiSoeborg/patch-1
Log erroneous keybindings
This commit is contained in:
commit
d00b9f3b7a
1 changed files with 1 additions and 1 deletions
|
@ -340,6 +340,7 @@ func findAction(v string) (action func(*View, bool) bool) {
|
||||||
func BindKey(k, v string) {
|
func BindKey(k, v string) {
|
||||||
key, ok := findKey(k)
|
key, ok := findKey(k)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
TermMessage("Unknown keybinding: " + k)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if v == "ToggleHelp" {
|
if v == "ToggleHelp" {
|
||||||
|
@ -381,7 +382,6 @@ func DefaultBindings() map[string]string {
|
||||||
"CtrlShiftUp": "SelectToStart",
|
"CtrlShiftUp": "SelectToStart",
|
||||||
"CtrlShiftDown": "SelectToEnd",
|
"CtrlShiftDown": "SelectToEnd",
|
||||||
"Enter": "InsertNewline",
|
"Enter": "InsertNewline",
|
||||||
"Space": "InsertSpace",
|
|
||||||
"CtrlH": "Backspace",
|
"CtrlH": "Backspace",
|
||||||
"Backspace": "Backspace",
|
"Backspace": "Backspace",
|
||||||
"Alt-CtrlH": "DeleteWordLeft",
|
"Alt-CtrlH": "DeleteWordLeft",
|
||||||
|
|
Loading…
Reference in a new issue