From 2f083b5750b265972491a6782fdb7ca94acd7444 Mon Sep 17 00:00:00 2001 From: gwern0 Date: Tue, 29 Nov 2011 17:03:35 +0100 Subject: Paste: 3 more escaped characters from alistra Ignore-this: 46f5b86a25bcd2b26d2e07ed33ffad68 darcs-hash:20111129160335-f7719-1efa503dad26b44e2601ce27d23c9cc8ad1e2e0a.gz --- XMonad/Util/Paste.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'XMonad/Util/Paste.hs') diff --git a/XMonad/Util/Paste.hs b/XMonad/Util/Paste.hs index dc9551b..9cb1df3 100644 --- a/XMonad/Util/Paste.hs +++ b/XMonad/Util/Paste.hs @@ -56,7 +56,7 @@ pasteSelection = getSelection >>= pasteString -- | Send a string to the window which is currently focused. This function correctly -- handles capitalization. Warning: in dealing with capitalized characters, this assumes a QWERTY layout. pasteString :: String -> X () -pasteString = mapM_ (\x -> if isUpper x || x `elem` "!@#$%^&*()_+{}:<>?\"" then pasteChar shiftMask x else pasteChar noModMask x) +pasteString = mapM_ (\x -> if isUpper x || x `elem` "~!@#$%^&*()_+{}|:\"<>?" then pasteChar shiftMask x else pasteChar noModMask x) {- | Send a character to the current window. This is more low-level. Remember that you must handle the case of capitalization appropriately. -- cgit v1.2.3