diff options
-rw-r--r-- | keyboard.lua | 7 |
1 files 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}) |