X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTEditorWidget.java;h=204b5750d3faa09d7c7c7a2f8b81460801195db8;hb=afdec5e9d0416e1c571f1961572b8ededef81146;hp=94f1a3be545b2a401f8e32d2920faf3268c5fc1a;hpb=615a0d99fd0aa4437116dd083147f9150d5e6527;p=fanfix.git diff --git a/src/jexer/TEditorWidget.java b/src/jexer/TEditorWidget.java index 94f1a3b..204b575 100644 --- a/src/jexer/TEditorWidget.java +++ b/src/jexer/TEditorWidget.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -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