Don't overwrite user bindings
This fix still needs more work. Ref #1821
This commit is contained in:
parent
c837a7d0b7
commit
1e83e666fb
1 changed files with 8 additions and 8 deletions
|
@ -50,14 +50,6 @@ func InitBindings() {
|
|||
}
|
||||
}
|
||||
|
||||
for p, bind := range Binder {
|
||||
defaults := DefaultBindings(p)
|
||||
|
||||
for k, v := range defaults {
|
||||
BindKey(k, v, bind)
|
||||
}
|
||||
}
|
||||
|
||||
for k, v := range parsed {
|
||||
switch val := v.(type) {
|
||||
case string:
|
||||
|
@ -76,6 +68,14 @@ func InitBindings() {
|
|||
screen.TermMessage("Error reading bindings.json: non-string and non-map entry", k)
|
||||
}
|
||||
}
|
||||
|
||||
for p, bind := range Binder {
|
||||
defaults := DefaultBindings(p)
|
||||
|
||||
for k, v := range defaults {
|
||||
BindKey(k, v, bind)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func BindKey(k, v string, bind func(e Event, a string)) {
|
||||
|
|
Loading…
Reference in a new issue