Skip to content

Commit

Permalink
WOOPS fix keyboard.keys reverse (index->key) lookup
Browse files Browse the repository at this point in the history
sorry, this has been broken for a while
  • Loading branch information
payonel committed Nov 25, 2017
1 parent 2a33433 commit 43a4db0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ setmetatable(keyboard.keys,
{
__index = function(tbl, k)
if type(k) ~= "number" then return end
for name,value in pairs(tbl.keys) do
for name,value in pairs(tbl) do
if value == k then
return name
end
Expand Down

0 comments on commit 43a4db0

Please sign in to comment.