rework mouse buttons, fixes #18

This commit is contained in:
airstruck
2015-12-19 23:54:57 -05:00
parent 0281944066
commit 1ee239b203
14 changed files with 158 additions and 106 deletions

View File

@@ -13,7 +13,8 @@ standard themes, the widget's value should be indicated in some other way.
--]]--
return function (self)
self:onPress(function ()
self:onPress(function (event)
if event.button ~= 'left' then return end
self.value = not self.value
end)