From 24c3cc18c57035a3770995fb3116486ea671e6f0 Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Wed, 10 Oct 2012 15:20:45 +0200 Subject: Rename (dis|en)ableFocus() to (dis|en)able() --- keyboard.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/keyboard.lua b/keyboard.lua index de0786e..30d8c43 100644 --- a/keyboard.lua +++ b/keyboard.lua @@ -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}) -- cgit v1.2.3-54-g00ecf