chiark / gitweb /
keymap: Only run on key devices
[elogind.git] / extras / keymap / 95-keymap.rules
index 98db471815df8033774d9ee2d80268610f7fb7c4..6f1b99555efb4d14bdab5f489ced00d6e3df0acb 100644 (file)
@@ -6,8 +6,9 @@
 # pairs.
 
 ACTION=="remove", GOTO="keyboard_end"
-SUBSYSTEM!="input", GOTO="keyboard_end"
 KERNEL!="event*", GOTO="keyboard_end"
+ENV{ID_INPUT_KEY}=="", GOTO="keyboard_end"
+SUBSYSTEMS=="bluetooth", GOTO="keyboard_end"
 
 SUBSYSTEMS=="usb", ENV{ID_VENDOR}=="", IMPORT{program}="usb_id --export %p"
 SUBSYSTEMS=="usb", GOTO="keyboard_usbcheck"