Paste.hs: +warning about ASCII limitations

This commit is contained in:
gwern0
2008-09-21 15:50:38 +00:00
parent 38a21daefe
commit 8971328f06

View File

@@ -58,6 +58,9 @@ pasteString = mapM_ (\x -> if isUpper x then pasteChar shiftMask x else pasteCha
You would want to do something like:
> pasteChar shiftMask 'F'
Note that this function makes use of 'stringToKeysym', and so will probably
have trouble with any Char outside ASCII.
-}
pasteChar :: KeyMask -> Char -> X ()
pasteChar m c = sendKey m $ stringToKeysym [c]