Fix #4: keyboard.disableFocus() not working.
Used undefined variable NO_WIDGET to clear keyboard focus. Same error was made in mouse.lua.
This commit is contained in:
parent
fd8664c80a
commit
d3b1a1c00d
3 changed files with 3 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ local _M -- holds the module. needed to make widgetHit overridable
|
|||
local x,y = 0,0
|
||||
local down = false
|
||||
local hot, active = nil, nil
|
||||
local NO_WIDGET = {}
|
||||
|
||||
local function widgetHit(mouse, pos, size)
|
||||
return mouse[1] >= pos[1] and mouse[1] <= pos[1] + size[1] and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue