kill the US-centric shiftedKeys map (fixes cmd-1)

This commit is contained in:
Chris Wanstrath
2011-11-12 19:56:54 -08:00
parent 8be8b6d593
commit ce89e7b9df

View File

@@ -108,7 +108,7 @@ class KeyBinder
throw "#{@name}: #{binding} specifies TWO keys, we don't handle that yet."
else if namedKey = @namedKeys[k.toLowerCase()]
key = namedKey
else if shiftedKey = @shiftedKeys[k.charCodeAt 0]
else if k.toLowerCase() isnt k
if not _.include modifiers, @modifierKeys.shift
modifiers.push @modifierKeys.shift
key = k.toLowerCase().charCodeAt 0
@@ -180,12 +180,3 @@ class KeyBinder
'[': 219
']': 221
'\\': 220
shiftedKeys:
48: ')', 49: '!', 50: '@', 51: '#', 52: '$', 53: '%', 54: '^'
55: '&', 56: '*', 57: '(', 65: 'A', 66: 'B', 67: 'C', 68: 'D'
69: 'E', 70: 'F', 71: 'G', 72: 'H', 73: 'I', 74: 'J', 75: 'K'
76: 'L', 77: 'M', 78: 'N', 79: 'O', 80: 'P', 81: 'Q', 82: 'R'
83: 'S', 84: 'T', 85: 'U', 86: 'V', 87: 'W', 88: 'X', 89: 'Y'
90: 'Z', 186: ':', 187: '+', 188: '<', 189: '_', 190: '>'
191: '?', 192: '~', 219: '{', 220: '|', 221: '}', 222: '"'