mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 09:47:19 +09:00
Merge pull request #474 from NicolaiSoeborg/patch-1
Log erroneous keybindings
This commit is contained in:
@@ -340,6 +340,7 @@ func findAction(v string) (action func(*View, bool) bool) {
|
||||
func BindKey(k, v string) {
|
||||
key, ok := findKey(k)
|
||||
if !ok {
|
||||
TermMessage("Unknown keybinding: " + k)
|
||||
return
|
||||
}
|
||||
if v == "ToggleHelp" {
|
||||
@@ -381,7 +382,6 @@ func DefaultBindings() map[string]string {
|
||||
"CtrlShiftUp": "SelectToStart",
|
||||
"CtrlShiftDown": "SelectToEnd",
|
||||
"Enter": "InsertNewline",
|
||||
"Space": "InsertSpace",
|
||||
"CtrlH": "Backspace",
|
||||
"Backspace": "Backspace",
|
||||
"Alt-CtrlH": "DeleteWordLeft",
|
||||
|
||||
Reference in New Issue
Block a user