From c0c5d57e10a97e4871bfcc648ddc1c097d5fe9f4 Mon Sep 17 00:00:00 2001 From: hugeblank Date: Tue, 8 May 2018 01:10:45 -0700 Subject: [PATCH 1/2] amend typo in keys.lua The most important commit that CC has ever seen. --- src/main/resources/assets/computercraft/lua/rom/apis/keys.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/apis/keys.lua b/src/main/resources/assets/computercraft/lua/rom/apis/keys.lua index 8b83425001..19035bb023 100644 --- a/src/main/resources/assets/computercraft/lua/rom/apis/keys.lua +++ b/src/main/resources/assets/computercraft/lua/rom/apis/keys.lua @@ -16,7 +16,7 @@ local tKeys = { "comma", "period", "slash", "rightShift","multiply", -- 51 "leftAlt", "space", "capsLock", "f1", "f2", -- 56 "f3", "f4", "f5", "f6", "f7", -- 61 - "f8", "f9", "f10", "numLock", "scollLock", -- 66 + "f8", "f9", "f10", "numLock", "scrollLock", -- 66 "numPad7", "numPad8", "numPad9", "numPadSubtract","numPad4", -- 71 "numPad5", "numPad6", "numPadAdd","numPad1", "numPad2", -- 76 "numPad3", "numPad0", "numPadDecimal",nil, nil, -- 81 @@ -53,6 +53,7 @@ for nKey, sKey in pairs( tKeys ) do keys[sKey] = nKey end keys["return"] = keys.enter +keys.scollLock = keys.scrollLock function getName( _nKey ) if type( _nKey ) ~= "number" then From afa002159ce94d62612e066b0cd0615941cb60f5 Mon Sep 17 00:00:00 2001 From: hugeblank Date: Wed, 9 May 2018 23:22:39 -0700 Subject: [PATCH 2/2] amend additional typo in keys.lua MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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. --- src/main/resources/assets/computercraft/lua/rom/apis/keys.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/apis/keys.lua b/src/main/resources/assets/computercraft/lua/rom/apis/keys.lua index 19035bb023..c47ca8deba 100644 --- a/src/main/resources/assets/computercraft/lua/rom/apis/keys.lua +++ b/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