mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
kill the US-centric shiftedKeys map (fixes cmd-1)
This commit is contained in:
@@ -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: '"'
|
||||
|
||||
Reference in New Issue
Block a user