fix double key conflict, eg: hold ctrl and repeat press other key

This commit is contained in:
xuxwke 2025-06-28 22:55:40 +08:00 committed by qianlifeng
parent 6f801d734b
commit 713ed58fb2
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ func registerDoubleHotKey(ctx context.Context, modifier hotkey.Modifier, callbac
}
lastKeyUpTimestamp.Store(ev.Keycode, util.GetSystemTimestamp())
} else {
lastKeyUpTimestamp.Clear()
}
}
default: