Remote: forward the physical keyboard and hide the phone OSK while typing
CI / test (push) Failing after 1m7s
CI / test (push) Failing after 1m7s
The web UI now sends key events without opening the KB bar, and releases held keys on blur, hide or disconnect. The first remote keystroke (web or VNC) turns the on-screen keyboard off; it comes back when the last typing client disconnects, unless the user toggled it by hand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5e62f1b8cb
commit
0356413bb2
7 files changed
+411
-26
No files matched your search
@@ -50,6 +50,9 @@ typedef struct {
|
||||
uint8_t hmac_key[32];
|
||||
volatile sig_atomic_t *running;
|
||||
pthread_mutex_t ping_mu;
|
||||
pthread_mutex_t osk_mu;
|
||||
int osk_suppress_refs;
|
||||
int osk_restore_on_end;
|
||||
char shm_path[512];
|
||||
} RemoteApp;
|
||||
|
||||
@@ -75,6 +78,9 @@ void ctl_init(CtlConn *c, const char *sock_path);
|
||||
void ctl_close(CtlConn *c);
|
||||
int ctl_cmd(CtlConn *c, const char *line, char *reply, size_t reply_cap);
|
||||
int ctl_fire(CtlConn *c, const char *line);
|
||||
void remote_osk_suppress_acquire(RemoteApp *app, int *client_flag);
|
||||
void remote_osk_suppress_release(RemoteApp *app, int *client_flag);
|
||||
void remote_osk_manual_override(RemoteApp *app);
|
||||
|
||||
/* Shared framebuffer reader (chandra-remote.c) */
|
||||
void fb_reader_init(FbReader *r, const char *shm_path);
|
||||
@@ -102,6 +108,7 @@ int remote_find_tailscale_ipv4(char *out, size_t cap);
|
||||
|
||||
/* Keysym & UTF-8 translation (keysym.c) */
|
||||
int keysym_to_evdev(uint32_t keysym, uint32_t *out_evdev, int *out_shift, int *out_mod_bit, uint32_t *out_unicode);
|
||||
void remote_send_codepoint(CtlConn *ctl, uint32_t uc);
|
||||
void remote_send_utf8_text(CtlConn *ctl, const char *utf8);
|
||||
void hex_encode(const uint8_t *in, size_t len, char *out);
|
||||
|
||||
|
||||
Reference in new issue
Block a user