1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-06 19:29:15 +08:00

Merge pull request #323 from radovskyb/patch-1

fixed undefined method error
This commit is contained in:
Ron Evans 2016-10-17 09:02:48 +02:00 committed by GitHub
commit 589af6f44c

View File

@ -24,7 +24,7 @@ Example:
keys := keyboard.NewDriver()
work := func() {
gobot.On(keys.Event("key"), func(data interface{}) {
keys.On(keys.Event("key"), func(data interface{}) {
key := data.(keyboard.KeyEvent)
if key.Key == keyboard.A {