Permalink
Browse files

amend additional typo in keys.lua

- fixed circumflex typo: you can now cîrcûmflêx on all your friends
- added comment making it clearer that the following lines are intended for backwards compatibility.
  • Loading branch information...
hugeblank committed May 10, 2018
1 parent c0c5d57 commit afa002159ce94d62612e066b0cd0615941cb60f5
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/resources/assets/computercraft/lua/rom/apis/keys.lua
@@ -31,7 +31,7 @@ local tKeys = {
nil, nil, nil, nil, nil, -- 126
nil, nil, nil, nil, nil, -- 131
nil, nil, nil, nil, nil, -- 136
"numPadEquals",nil, nil, "cimcumflex","at", -- 141
"numPadEquals",nil, nil, "circumflex","at", -- 141
"colon", "underscore","kanji", "stop", "ax", -- 146
nil, nil, nil, nil, nil, -- 151
"numPadEnter","rightCtrl",nil, nil, nil, -- 156
@@ -53,7 +53,9 @@ for nKey, sKey in pairs( tKeys ) do
keys[sKey] = nKey
end
keys["return"] = keys.enter
--backwards compatibility to earlier, typo prone, versions
keys.scollLock = keys.scrollLock
keys.cimcumflex = keys.circumflex
function getName( _nKey )
if type( _nKey ) ~= "number" then

0 comments on commit afa0021

Please sign in to comment.