We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f0513 commit 621ebf6Copy full SHA for 621ebf6
examples/EventWatch.hs
@@ -51,4 +51,9 @@ appLoop = waitEvent >>= go
51
| keyboardEventKeyMotion keyboardEvent == Pressed &&
52
keysymKeycode (keyboardEventKeysym keyboardEvent) == KeycodeQ
53
-> return ()
54
+ KeyboardEvent keyboardEvent
55
+ | keyboardEventKeyMotion keyboardEvent == Pressed
56
+ -> print (keyboardEventKeysym keyboardEvent) >> waitEvent >>= go
57
+ QuitEvent
58
+ -> return ()
59
_ -> waitEvent >>= go
0 commit comments