diff options
author | Matthias Richter <vrld@vrld.org> | 2012-10-10 15:20:45 +0200 |
---|---|---|
committer | Matthias Richter <vrld@vrld.org> | 2012-10-10 15:20:45 +0200 |
commit | 24c3cc18c57035a3770995fb3116486ea671e6f0 (patch) | |
tree | b05ac9046181a85c6bc949d8fff906fa1f0518c2 | |
parent | 0d8567085189a5d730373815294d9ee1f4c25f16 (diff) | |
download | Quickie-24c3cc18c57035a3770995fb3116486ea671e6f0.tar.gz Quickie-24c3cc18c57035a3770995fb3116486ea671e6f0.tar.bz2 Quickie-24c3cc18c57035a3770995fb3116486ea671e6f0.tar.xz Quickie-24c3cc18c57035a3770995fb3116486ea671e6f0.zip |
Rename (dis|en)ableFocus() to (dis|en)able()
-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}) |