Differential D10905 Diff 28488 src/org/kde/kdeconnect/Plugins/MousePadPlugin/KeyInputConnection.java
Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Plugins/MousePadPlugin/KeyInputConnection.java
1 | package org.kde.kdeconnect.Plugins.MousePadPlugin; | 1 | package org.kde.kdeconnect.Plugins.MousePadPlugin; | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | import android.view.inputmethod.BaseInputConnection; | 3 | import android.view.inputmethod.BaseInputConnection; | ||
4 | 4 | | |||
5 | public class KeyInputConnection extends BaseInputConnection { | 5 | public class KeyInputConnection extends BaseInputConnection { | ||
6 | private KeyListenerView view; | 6 | private KeyListenerView view; | ||
7 | 7 | | |||
8 | public KeyInputConnection(KeyListenerView targetView, boolean fullEditor) { | 8 | public KeyInputConnection(KeyListenerView targetView, boolean fullEditor) { | ||
9 | super(targetView, fullEditor); | 9 | super(targetView, fullEditor); | ||
10 | view = targetView; | 10 | view = targetView; | ||
11 | } | 11 | } | ||
12 | 12 | | |||
13 | @Override public boolean commitText(CharSequence text, int newCursorPosition) { | 13 | @Override | ||
14 | public boolean commitText(CharSequence text, int newCursorPosition) { | ||||
14 | view.sendChars(text); | 15 | view.sendChars(text); | ||
15 | return true; | 16 | return true; | ||
16 | } | 17 | } | ||
17 | } | 18 | } | ||
18 | No newline at end of file | 19 | No newline at end of file |