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:
parent
6783ce2f1b
commit
0c98964f16
@ -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()) {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user