Fix possible crash in findkey

Fixes #1103
This commit is contained in:
Zachary Yedidia
2018-04-28 17:16:22 -04:00
parent 11cb702d7f
commit 2e64499f96

View File

@@ -338,6 +338,10 @@ modSearch:
}
}
if len(k) == 0 {
return Key{buttons: -1}, false
}
// Control is handled specially, since some character codes in bindingKeys
// are different when Control is depressed. We should check for Control keys
// first.