Rename (dis|en)ableFocus() to (dis|en)able()

This commit is contained in:
Matthias Richter 2012-10-10 15:20:45 +02:00
parent 0d85670851
commit 24c3cc18c5

View file

@ -36,7 +36,7 @@ local cycle = {
local function pressed(...) key, code = ... end
local function setFocus(id) focus = id end
local function disableFocus() focus = NO_WIDGET end
local function disable() focus = NO_WIDGET end
local function clearFocus() focus = nil end
local function hasFocus(id) return id == focus end
@ -79,12 +79,13 @@ return setmetatable({
tryGrab = tryGrab,
isBindingDown = isBindingDown,
setFocus = setFocus,
disableFocus = disableFocus,
enableFocus = clearFocus,
clearFocus = clearFocus,
hasFocus = hasFocus,
makeCyclable = makeCyclable,
disable = disable,
enable = clearFocus,
beginFrame = beginFrame,
endFrame = endFrame,
}, {__index = function(_,k) return ({key = key, code = code})[k] end})