From ce89e7b9dfcad9b3a0839ded39e6561550dae069 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 12 Nov 2011 19:56:54 -0800 Subject: [PATCH] kill the US-centric shiftedKeys map (fixes cmd-1) --- src/stdlib/key-binder.coffee | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/stdlib/key-binder.coffee b/src/stdlib/key-binder.coffee index ed4832876..e5907891b 100644 --- a/src/stdlib/key-binder.coffee +++ b/src/stdlib/key-binder.coffee @@ -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: '"'