#35 support emoji in tterminal
[fanfix.git] / src / jexer / TEditorWidget.java
index f65ba6b5823b4d1592288488b3e0f1aba4c036b6..204b5750d3faa09d7c7c7a2f8b81460801195db8 100644 (file)
@@ -265,7 +265,8 @@ public class TEditorWidget extends TWidget {
             && !keypress.getKey().isCtrl()
         ) {
             // Plain old keystroke, process it
-            document.addChar(keypress.getKey().getChar());
+            // TODO: fix document to use ints, not chars
+            document.addChar((char) keypress.getKey().getChar());
             alignCursor();
         } else {
             // Pass other keys (tab etc.) on to TWidget