+
+ var normalized = $.map(String.prototype.split.call(keystring, '+'), function(val, i) {
+ console.log(keystring)
+ switch (val) {
+ case 'ctrl':
+ case 'alt': return val;
+ case 'enter': return 13;
+ default:
+ if (val.length == 1) {
+ return val.charChodeAt(0)
+ } else if (val % 1 === 0) {
+ return val;
+ } else {
+ console.log('can not normalize access key token: ' + val);
+ }
+ }
+ }).join('+');
+