forked from Blendman974/faceclaw
iOS porting: Config pull and push scripts; Terminal works; voice input with Siri works
This commit is contained in:
1 parent
b07ae0b479
commit
319d3dc44b
21 files changed
+339
-9
No files matched your search
@@ -326,7 +326,9 @@ export class G2MirrorClient {
|
||||
*/
|
||||
submitInput(text: string): void {
|
||||
if (this.phase !== "attached") return;
|
||||
const textByteLength = new java.lang.String(text).getBytes("UTF-8").length;
|
||||
const textByteLength = global.isIOS
|
||||
? NSString.stringWithString(text).lengthOfBytesUsingEncoding(NSUTF8StringEncoding)
|
||||
: new java.lang.String(text).getBytes("UTF-8").length;
|
||||
this.send({
|
||||
type: "input",
|
||||
data: encodeBase64Utf8(`${text}\r`),
|
||||
|
||||
Reference in new issue
Block a user