浏览代码

Fixing AL and AC namespaced Consumer control media keys

master
Jacob Alexander 8 年前
父节点
当前提交
f1bad4de4b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      backends/kiibohd.py

+ 2
- 1
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( '_', '' )