diff options
author | Teddy Wing | 2021-09-14 19:59:36 +0200 |
---|---|---|
committer | Teddy Wing | 2021-09-14 19:59:36 +0200 |
commit | 20f324ea775636bfb94e1ec8f3214438b146f645 (patch) | |
tree | 755b10b6a4f35bf3dbf46cb294d40dc48aca8515 | |
parent | 52e85e4eb212e5c39a460d10e9c64b2fd3b215c2 (diff) | |
download | dothammerspoon-20f324ea775636bfb94e1ec8f3214438b146f645.tar.bz2 |
keyboard_layout: Fix keyboard condition boolean operators
Made a mistake: the boolean expression wasn't saying what I wanted it to
say. All parts should match the USB device in order to continue.
-rw-r--r-- | keyboard_layout.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboard_layout.lua b/keyboard_layout.lua index a230f9b..34404b7 100644 --- a/keyboard_layout.lua +++ b/keyboard_layout.lua @@ -19,8 +19,8 @@ keyboard_usb_watcher = hs.usb.watcher.new(function(event) if event['productName'] ~= 'iMate, USB To ADB Adaptor' - and event['vendorID'] ~= 1917 - and event['productID'] ~= 1029 + or event['vendorID'] ~= 1917 + or event['productID'] ~= 1029 then return end |