From d3b1a1c00d2c984f0815cb260a753d096d3b858e Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Mon, 3 Sep 2012 15:30:17 +0200 Subject: Fix #4: keyboard.disableFocus() not working. Used undefined variable NO_WIDGET to clear keyboard focus. Same error was made in mouse.lua. --- mouse.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'mouse.lua') diff --git a/mouse.lua b/mouse.lua index eac46f5..75b6e17 100644 --- a/mouse.lua +++ b/mouse.lua @@ -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 -- cgit v1.2.3-54-g00ecf