changeset 62:ac26fc84149c

Fixing AL and AC namespaced Consumer control media keys
author Jacob Alexander <haata@kiibohd.com>
date Thu, 01 Oct 2015 22:28:36 -0700
parents 4a11bc59c013
children 7fa222cad342
files backends/kiibohd.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backends/kiibohd.py	Wed Sep 30 00:04:30 2015 -0700
+++ b/backends/kiibohd.py	Thu Oct 01 22:28:36 2015 -0700
@@ -176,7 +176,8 @@
 						# 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( '_', '' )