Merge branch 'master' of git://github.com/vrld/Quickie.git

This commit is contained in:
mkosler 2012-02-21 12:50:21 -06:00
commit d51babb366
9 changed files with 12 additions and 31 deletions

View file

@ -1,4 +1,4 @@
local core = require((...):match("^(.+)%.[^%.]+") .. '.core')
local core = require((...):match("(.-)[^%.]+$") .. 'core')
return function(info, x,y,w,h, draw)
info.text = info.text or ""
@ -10,6 +10,7 @@ return function(info, x,y,w,h, draw)
if core.isActive(id) then core.setKeyFocus(id) end
core.registerDraw(id, draw or core.style.Input, info.text, info.cursor, x,y,w,h)
if not core.hasKeyFocus(id) then return false end
local changed = false
-- editing