2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 05:07:40 +00:00

Input plugin only sends requests

This commit is contained in:
Albert Vaca 2016-06-01 12:07:22 +02:00
parent 6783ce2f1b
commit 0c98964f16
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ public class KeyListenerView extends View {
}
public void sendChars(CharSequence chars) {
final NetworkPackage np = new NetworkPackage(MousePadPlugin.PACKAGE_TYPE_INPUT);
final NetworkPackage np = new NetworkPackage(MousePadPlugin.PACKAGE_TYPE_INPUT_REQUEST);
np.set("key", chars.toString());
sendKeyPressPackage(np);
}
@ -135,7 +135,7 @@ public class KeyListenerView extends View {
//Log.e("KeyDown", "utfChar:" + (char)event.getUnicodeChar());
//Log.e("KeyDown", "intUtfChar:" + event.getUnicodeChar());
final NetworkPackage np = new NetworkPackage(MousePadPlugin.PACKAGE_TYPE_INPUT);
final NetworkPackage np = new NetworkPackage(MousePadPlugin.PACKAGE_TYPE_INPUT_REQUEST);
boolean modifier = false;
if (event.isAltPressed()) {

View File

@ -31,7 +31,7 @@ import org.kde.kdeconnect_tp.R;
public class MousePadPlugin extends Plugin {
public final static String PACKAGE_TYPE_INPUT = "kdeconnect.input";
//public final static String PACKAGE_TYPE_INPUT = "kdeconnect.input";
public final static String PACKAGE_TYPE_INPUT_REQUEST = "kdeconnect.input.request";
@Override