diff options
Diffstat (limited to 'src/Internal/RebindKeys.hs')
| -rw-r--r-- | src/Internal/RebindKeys.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Internal/RebindKeys.hs b/src/Internal/RebindKeys.hs index 22b0165..7c5d47c 100644 --- a/src/Internal/RebindKeys.hs +++ b/src/Internal/RebindKeys.hs @@ -91,6 +91,12 @@ remapKey keyFrom action = do XS.modify $ \(RemapState (NoPersist keyMap)) -> RemapState $ NoPersist $ Map.insert (window, keyFrom) action keyMap +-- sendKey, but as a query. +sendKeyQ :: (KeyMask, KeySym) -> Query () +sendKeyQ key = do + win <- ask + liftX (sendKey key win) + sendKey :: (KeyMask, KeySym) -> Window -> X () sendKey (keymask, keysym) w = do XConf { display = disp, theRoot = rootw } <- ask |