Skip to content

Commit 264da6c

Browse files
committed
Fix example #15
1 parent cf5d5d8 commit 264da6c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

keybd_event_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ func ExampleNewKeyBonding() {
1414
if runtime.GOOS == "linux" {
1515
time.Sleep(2 * time.Second)
1616
}
17-
kb.SetKeys(VK_SP2) //set keys
17+
kb.SetKeys(VK_A, VK_B) //set keys
1818

19-
kb.HasALTGR(true) //set shif is pressed
19+
kb.HasSHIFT(true) //set shif is pressed
2020

2121
err = kb.Launching() //launch
2222
if err != nil {
2323
panic(err)
2424
}
25-
// Output: AB
25+
// The output is in your console
26+
// Output:
2627
}

0 commit comments

Comments
 (0)