aboutsummaryrefslogtreecommitdiff
path: root/key_maps.go
diff options
context:
space:
mode:
Diffstat (limited to 'key_maps.go')
-rw-r--r--key_maps.go44
1 files changed, 44 insertions, 0 deletions
diff --git a/key_maps.go b/key_maps.go
new file mode 100644
index 0000000..699e9ee
--- /dev/null
+++ b/key_maps.go
@@ -0,0 +1,44 @@
+package main
+
+var x11Map = map[string]string{
+ " ": "space",
+ "!": "exclam",
+ "@": "at",
+ "#": "numbersign",
+ "$": "dollar",
+ "%": "percent",
+ "^": "asciicircum",
+ "&": "ampersand",
+ "*": "asterisk",
+ "(": "parenleft",
+ ")": "parenright",
+ "~": "asciitilde",
+ "`": "grave",
+ "-": "minus",
+ "_": "underscore",
+ "=": "equal",
+ "+": "plus",
+ "[": "bracketleft",
+ "]": "bracketright",
+ "{": "braceleft",
+ "}": "braceright",
+ "\\": "backslash",
+ "|": "bar",
+ ";": "semicolon",
+ ":": "colon",
+ "'": "apostrophe",
+ "\"": "quotedbl",
+ ",": "comma",
+ "<": "less",
+ ".": "period",
+ ">": "greater",
+ "/": "slash",
+ "?": "question",
+}
+
+var needsShift = []string{
+ "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "_", "+",
+ "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "{", "}", "|",
+ "A", "S", "D", "F", "G", "H", "J", "K", "L", "L", ":", "\"",
+ "Z", "X", "C", "V", "B", "N", "M", "<", ">", "?",
+}