mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
WOOPS fix keyboard.keys reverse (index->key) lookup
sorry, this has been broken for a while
This commit is contained in:
parent
2a3343391d
commit
43a4db05ec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user