WebAPI/KeboardIME: Difference between revisions

Jump to navigation Jump to search
Line 194: Line 194:
     } else {
     } else {
       inputContext.commitText('☃');
       inputContext.commitText('☃');
       'SNOW'.split('').forEach(function (k) {
       ['S', 'N', 'O', 'W'].forEach(function (k) {
         // For capital Latin letters, keyCode is same as the charCode.
         // For capital Latin letters, keyCode is same as the charCode.
         inputContext.sendKey(k.charCodeAt(0), k.charCodeAt(0));
         inputContext.sendKey(k.charCodeAt(0), k.charCodeAt(0));
Confirmed users
478

edits

Navigation menu