mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 10:26:43 +00:00
rework mouse buttons, fixes #18
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user