mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-23 22:28:35 +00:00
* fix(cm): block remote typing into protected chat Publish CM focus protection over the existing IPC connection and check queued remote keys before injection. Preserve local chat editing and remote key releases, and stop input before closing desktop sessions when an established CM transport disconnects. Add input-gate and local chat editing regression tests. Initial CM state synchronization and already-dispatched platform input remain known timing limits. Signed-off-by: fufesou <linlong1266@gmail.com> * refactor(cm): use a common synchronous setter Route CM input protection through main_set_common_sync using the cm-input-blocked command. Preserve synchronous state publication and return errors for unsupported commands or invalid values. Remove the redundant Flutter CM chat compatibility test. Signed-off-by: fufesou <linlong1266@gmail.com> * fix(cm): protect keyboard input whenever CM is focused Use keyboard-specific names throughout CM protection and its common setter command. Keep mouse permission checks and key-release handling unchanged, and name transport-loss notifications after CM IPC. Signed-off-by: fufesou <linlong1266@gmail.com> * fix(cm): validate mouse modifiers and preserve pending tunnels Signed-off-by: fufesou <linlong1266@gmail.com> * simplify Signed-off-by: fufesou <linlong1266@gmail.com> * Limit CM keyboard filtering to activation keys Allow remote editing and non-activation shortcuts while CM is focused, while rejecting keyboard activation of chat controls across protocol encodings. Preserve local keyboard input and key releases. Handle raw keys, text injection, Windows packed payloads, and Linux Select. Reuse the native hotkey predicate so intact Legacy Unicode remains usable. Signed-off-by: fufesou <linlong1266@gmail.com> * Simplify CM keyboard filtering and disconnect teardown Consolidate activation checks and regression tests. Use normal session teardown after CM IPC loss so the configured lock-after-session-end policy still applies. Signed-off-by: fufesou <linlong1266@gmail.com> * fix(cm): simplify remote chat send protection Reuse checkClickTime for keyboard and send-button actions before sending or clearing drafts. Allow remote interaction when configured. Record keyboard activity before native dispatch and retain the mouse modifier whitelist. Remove the focus gate and its IPC plumbing. Signed-off-by: fufesou <linlong1266@gmail.com> * fix(cm): cancel pending chat sends after disconnect Signed-off-by: fufesou <linlong1266@gmail.com> * remove the low-value test file Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>