From: Jacob Alexander Date: Fri, 2 Oct 2015 05:28:36 +0000 (-0700) Subject: Fixing AL and AC namespaced Consumer control media keys X-Git-Url: https://git.donarmstrong.com/?p=kiibohd-kll.git;a=commitdiff_plain;h=f1bad4de4b82d4ebbda78184d9c05edaf999e4c3;hp=e381131176183b3bb0a274b6aa59afecbe6582fb Fixing AL and AC namespaced Consumer control media keys --- diff --git a/backends/kiibohd.py b/backends/kiibohd.py index 70fd58c..09b6dca 100644 --- a/backends/kiibohd.py +++ b/backends/kiibohd.py @@ -176,7 +176,8 @@ class Backend( BackendBase ): # Special cases if isinstance( resultItem[1][ arg ], str ): # If this is a CONSUMER_ element, needs to be split into 2 elements - if re.match( '^CONSUMER_', resultItem[1][ arg ] ): + # AC_ and AL_ are other sections of consumer control + if re.match( '^(CONSUMER|AC|AL)_', resultItem[1][ arg ] ): tag = resultItem[1][ arg ].split( '_', 1 )[1] if '_' in tag: tag = tag.replace( '_', '' )