Maintainer | Toshio Ito <debug.ito@gmail.com> |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
This is an internal module. Package users should not rely on this.
- class KeySymLike k where
- xEventToKeySymLike :: KeySymLike k => XEventPtr -> MaybeT IO k
- class ModifierLike k
- xGrabKey :: (KeySymLike k, ModifierLike k) => Display -> Window -> k -> IO ()
- xUngrabKey :: (KeySymLike k, ModifierLike k) => Display -> Window -> k -> IO ()
Conversion between key types
class KeySymLike k where Source #
Convertible to/from Xlib's KeySym
fromKeySym . toKeySym == Just
xEventToKeySymLike :: KeySymLike k => XEventPtr -> MaybeT IO k Source #
Extract the KeySymLike
associated with the XEvent.
Key grabs
xGrabKey :: (KeySymLike k, ModifierLike k) => Display -> Window -> k -> IO () Source #
Grab the specified key on the specified window. The key is captured from now on, so the window won't get that.
xUngrabKey :: (KeySymLike k, ModifierLike k) => Display -> Window -> k -> IO () Source #
Release the grab on the specified key.