mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-02 07:05:09 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
475f85d0d3 | ||
|
6c50d0f05d | ||
|
aad298ae31 |
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.kde.kdeconnect_tp"
|
package="org.kde.kdeconnect_tp"
|
||||||
android:versionCode="908"
|
android:versionCode="909"
|
||||||
android:versionName="0.9d">
|
android:versionName="0.9e">
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="9"
|
<uses-sdk android:minSdkVersion="9"
|
||||||
android:targetSdkVersion="22" />
|
android:targetSdkVersion="22" />
|
||||||
|
@@ -159,10 +159,13 @@ public class KeyListenerView extends View {
|
|||||||
char keyCharacter = event.getDisplayLabel();
|
char keyCharacter = event.getDisplayLabel();
|
||||||
np.set("key", new String(new char[]{keyCharacter}).toLowerCase());
|
np.set("key", new String(new char[]{keyCharacter}).toLowerCase());
|
||||||
} else {
|
} else {
|
||||||
return false; //normal keys will be handled by KeyInputConnection
|
//A normal key, but still not handled by the KeyInputConnection (happens with numbers)
|
||||||
|
np.set("key", new String(new char[]{(char)event.getUnicodeChar()}));
|
||||||
}
|
}
|
||||||
|
|
||||||
sendKeyPressPackage(np);
|
sendKeyPressPackage(np);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -345,17 +345,18 @@ public class MousePadActivity extends ActionBarActivity implements GestureDetect
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
private void sendSingleHold() {
|
|
||||||
BackgroundService.RunCommand(this, new BackgroundService.InstanceCallback() {
|
private void sendSingleHold() {
|
||||||
@Override
|
BackgroundService.RunCommand(this, new BackgroundService.InstanceCallback() {
|
||||||
public void onServiceStart(BackgroundService service) {
|
@Override
|
||||||
Device device = service.getDevice(deviceId);
|
public void onServiceStart(BackgroundService service) {
|
||||||
MousePadPlugin mousePadPlugin = device.getPlugin(MousePadPlugin.class);
|
Device device = service.getDevice(deviceId);
|
||||||
if (mousePadPlugin == null) return;
|
MousePadPlugin mousePadPlugin = device.getPlugin(MousePadPlugin.class);
|
||||||
mousePadPlugin.sendSingleHold();
|
if (mousePadPlugin == null) return;
|
||||||
}
|
mousePadPlugin.sendSingleHold();
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private void showKeyboard() {
|
private void showKeyboard() {
|
||||||
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
|
Reference in New Issue
Block a user