on master help sign in
toCode needs to use uppercase, since keyboard separates key and modifier
commitb8a270e9d409be019b27408013197a031e12bf65 authorJohn P Mayer Jr <john.p.mayer.jr@gmail.com> dateThu 15 Aug 2013, 06:09 (13 years ago) parent6821a35
1 file changed+1−1
libraries/Native/Char.js+1−1
libraries/Native/Char.js+1−1
@@ -16,7 +16,7 @@ Elm.Native.Char = function(elm) {
1616
1717 return elm.Native.Char = {
1818 fromCode : function(c) { return String.fromCharCode(c); },
19− toCode : function(c) { return c.charCodeAt(0); },
19+ toCode : function(c) { return c.toUpperCase().charCodeAt(0); },
2020 toUpper : function(c) { return c.toUpperCase(); },
2121 toLower : function(c) { return c.toLowerCase(); },
2222 toLocaleUpper : function(c) { return c.toLocaleUpperCase(); },