summaryrefslogtreecommitdiff
path: root/src/us/minak/IMEService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/us/minak/IMEService.java')
-rw-r--r--src/us/minak/IMEService.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/us/minak/IMEService.java b/src/us/minak/IMEService.java
index ba09656..6064be9 100644
--- a/src/us/minak/IMEService.java
+++ b/src/us/minak/IMEService.java
@@ -18,7 +18,12 @@ public class IMEService extends InputMethodService {
public View onCreateInputView() {
final IMEView view = (IMEView) getLayoutInflater().inflate(R.layout.ime, null);
- // TODO: there probably needs to be more stuff here
+ view.setOnCharacterEnteredListener(new OnCharacterEnteredListener() {
+ @Override
+ public void characterEntered(String character) {
+ getCurrentInputConnection().commitText(character, 1);
+ }
+ });
this.imeView = view;
return view;