ExtraKey: Update method declaration

This commit is contained in:
zt515 2017-12-27 00:05:29 +08:00
parent d2e9f06de3
commit ccaf6048cb

View File

@ -44,11 +44,10 @@ class ExtraKeyComponent : ConfigFileBasedComponent<NeoExtraKey>(NeoTermPath.EKS_
extraKeysView.loadDefaultUserKeys()
}
private fun registerShortcutKeys(extraKey: NeoExtraKey) {
private fun registerShortcutKeys(extraKey: NeoExtraKey) =
extraKey.programNames.forEach {
extraKeys[it] = extraKey
}
}
private fun extractDefaultConfig(context: Context) {
try {