diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2016-04-02 23:35:15 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2016-04-02 23:35:15 -0400 |
commit | 0c4915da62a96bf6db20377ce11fa887b6271ad9 (patch) | |
tree | 4bc7d4b0722bce49aebf341841f3ab4fa8ad1dfd /core/keys.lua | |
parent | f6705b546d2f037302f2d2d95bae507e78b29d59 (diff) |
Code cleanup.
Do not use `ipairs()` and use more consistent variable names among other things.
Diffstat (limited to 'core/keys.lua')
-rw-r--r-- | core/keys.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/keys.lua b/core/keys.lua index 927491e2..ce4a2cc0 100644 --- a/core/keys.lua +++ b/core/keys.lua @@ -155,7 +155,7 @@ local keychain = {} -- @name keychain M.keychain = setmetatable({}, { __index = keychain, - __newindex = function() error("'keys.keychain' is read-only") end, + __newindex = function() error("read-only table") end, __len = function() return #keychain end }) @@ -253,7 +253,7 @@ local function keypress(code, shift, control, alt, meta) end -- PROPAGATE otherwise. end -events.connect(events.KEYPRESS, keypress, 1) +events.connect(events.KEYPRESS, keypress) --- -- Map of key bindings to commands, with language-specific key tables assigned |