on master help sign in
toCode needs to use uppercase, since keyboard separates key and modifier
b8a270eJohn P Mayer Jr
libraries/Native/Char.js+1−1
@@ -16,7 +16,7 @@ Elm.Native.Char = function(elm) {
16
16
17 return elm.Native.Char = {
17 return elm.Native.Char = {
18 fromCode : function(c) { return String.fromCharCode(c); },
18 fromCode : function(c) { return String.fromCharCode(c); },
19− toCode : function(c) { return c.charCodeAt(0); },
19+ toCode : function(c) { return c.toUpperCase().charCodeAt(0); },
20 toUpper : function(c) { return c.toUpperCase(); },
20 toUpper : function(c) { return c.toUpperCase(); },
21 toLower : function(c) { return c.toLowerCase(); },
21 toLower : function(c) { return c.toLowerCase(); },
22 toLocaleUpper : function(c) { return c.toLocaleUpperCase(); },
22 toLocaleUpper : function(c) { return c.toLocaleUpperCase(); },