Skip to content

Commit

Permalink
Remove uncessary util files
Browse files Browse the repository at this point in the history
  • Loading branch information
francesar committed Jul 7, 2019
1 parent add3df4 commit dae68d3
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 115 deletions.
7 changes: 5 additions & 2 deletions src/components/Keyboard.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/utils/index.js

This file was deleted.

43 changes: 43 additions & 0 deletions src/utils/keyboard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Maps user key input values to whatever class
* is going to be used to highlight the keys
* they should be typing with.
* From #typephil 1.0
*/
export const mapToSpecialKeys = {
"~": "`",
"!": "1",
"@": "2",
"#": "3",
"$": "4",
"%": "5",
"^": "6",
"&": "7",
"*": "8",
"(": "9",
")": "0",
"_": "-",
"+": "=",
"|": "\\",
"{": "[",
"}": "]",
":": ";",
'"': "'",
"<": ",",
">": ".",
"?": "/"
};

export const specialKeyNames = {
";": "semicolon",
"[": "bracket-r",
"]": "bracket-l",
"`": "tick",
"=": "equal",
"-": "minus",
"/": "f-slash",
".": "period",
",": "comma"
}

export const shiftedKeys = ["~", "!", "@", "#", "$", "%", "^", "&amp;", "*", "(", ")", "_", "+", "|", "{", "}", ":", '"', "&lt;", "?"]
110 changes: 0 additions & 110 deletions src/utils/keyboardUtils.js

This file was deleted.

0 comments on commit dae68d3

Please sign in to comment.