diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2011-07-20 12:49:40 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2011-07-20 12:52:28 +0200 |
commit | 2614261e4dcbf0f5e342a274694a243e9f644dc1 (patch) | |
tree | 0db7dd163b953165d6bdc7b5ef6b310c6e02e769 /extras/keymap/95-keymap.rules | |
parent | 4da9fcb366b32f4c50464ce76099379722ab9c9f (diff) |
keymap: Only run on key devices
Skip event devices which don't have ID_INPUT_KEY set, to avoid running the long
list of rules more than necessary.
Note that we don't limit ourselves to ID_INPUT_KEYBOARD, as we might want to
fix extra buttons on e. g. fancy mouses or tablet screens, too.
Diffstat (limited to 'extras/keymap/95-keymap.rules')
-rw-r--r-- | extras/keymap/95-keymap.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules index 39d2322020..6f1b99555e 100644 --- a/extras/keymap/95-keymap.rules +++ b/extras/keymap/95-keymap.rules @@ -6,8 +6,8 @@ # 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" |