Release v0.6.57: multi-PC input, shared clipboard and resilient Settings Save

This commit is contained in:
agrynco committed 2026-11-06 21:33:37 +02:00
1 parent 82292c8a7e
commit 5de010ee44
39 files changed
+1707 -312

No files matched your search

+13
View File
@@ -676,6 +676,19 @@ int main(int argc, char **argv) {
};
auto commands=[&] { MSG m{}; int n=0; while(PeekMessageW(&m,app.window,WM_HOTKEY,WM_HOTKEY,PM_REMOVE)) ++n; return n; };
auto f12=event(VK_F12);
{
auto localF12=f12;localF12.flags=0;localF12.dwExtraInfo=0;
app.handleKeyboard(localF12,true,MOD_CONTROL);commands();
app.resetLanInput();
require(app.handleKeyboard(localF12,true,MOD_CONTROL)&&commands()==1,
"local shortcut works after LAN handoff even when release happened on another PC");
app.handleKeyboard(localF12,false,0);
auto letter=event('A',30);letter.flags=0;letter.dwExtraInfo=0;
app.resetLanInput();app.handleKeyboard(letter,true,0);
require(!app.run.keys.empty(),"local typing tracking resumes after LAN ownership reset");
app.run.reset();
}
{
const auto before = app.inputVersion.load();
const auto recorded = app.run.keys;