Skip to content

Commit

Permalink
Fix example #15
Browse files Browse the repository at this point in the history
  • Loading branch information
micmonay committed Nov 30, 2019
1 parent cf5d5d8 commit 264da6c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions keybd_event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ func ExampleNewKeyBonding() {
if runtime.GOOS == "linux" {
time.Sleep(2 * time.Second)
}
kb.SetKeys(VK_SP2) //set keys
kb.SetKeys(VK_A, VK_B) //set keys

kb.HasALTGR(true) //set shif is pressed
kb.HasSHIFT(true) //set shif is pressed

err = kb.Launching() //launch
if err != nil {
panic(err)
}
// Output: AB
// The output is in your console
// Output:
}

0 comments on commit 264da6c

Please sign in to comment.