-
Notifications
You must be signed in to change notification settings - Fork 193
amend typos in keys.lua #543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably should add a comment here explaining why the old name is kept for after this is merged, something like "typo kept to avoid a breaking change"
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought about it, I wasn’t sure if it was worth commenting though. I’ll add it when I get the chance.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @KnightMiner I should mention I did this in the most recent commit. |
||
|
|
||
| function getName( _nKey ) | ||
| if type( _nKey ) ~= "number" then | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might as well change this to
keys["scrollLock"]to be consistent with the line above.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's only
["return"]because that is a Lua keyword, and sokeys.returnis invalid syntax.