diff options
-rw-r--r-- | DomeKey/HeadphoneKey.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/DomeKey/HeadphoneKey.m b/DomeKey/HeadphoneKey.m index 8144035..b6d783e 100644 --- a/DomeKey/HeadphoneKey.m +++ b/DomeKey/HeadphoneKey.m @@ -81,7 +81,8 @@ const CKeyActionResult *result = c_run_key_action(trigger, NULL); - if (*result->kind == MapKind_Map) { + if (result->kind && + *result->kind == ActionKind_Map) { const char *c = result->action; int i = 0; while (*c) { |