diff options
| author | peb <unknown> | 2005-02-18 18:21:06 +0000 |
|---|---|---|
| committer | peb <unknown> | 2005-02-18 18:21:06 +0000 |
| commit | 9568d7a844ba6a1872a8e8f6ef002860057e62ab (patch) | |
| tree | 9e25c6ed62e48101a2782d5fb8dcba68462dc613 /src/GF/Fudgets/EventF.hs | |
| parent | 1c4f025320900897ae3acdab6982f7d595b98dd1 (diff) | |
"Committed_by_peb"
Diffstat (limited to 'src/GF/Fudgets/EventF.hs')
| -rw-r--r-- | src/GF/Fudgets/EventF.hs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/GF/Fudgets/EventF.hs b/src/GF/Fudgets/EventF.hs index 9c2ba19ee..f517ab22e 100644 --- a/src/GF/Fudgets/EventF.hs +++ b/src/GF/Fudgets/EventF.hs @@ -1,13 +1,13 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : EventF +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:14 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.3 $ -- -- (Description of the module) ----------------------------------------------------------------------------- @@ -15,12 +15,13 @@ module EventF where import AllFudgets --- The first string is the name of the key (e.g., "Down" for the down arrow key) +-- | The first string is the name of the key (e.g., "Down" for the down arrow key) +-- -- The modifiers list shift, control and alt keys that were active while the -- key was pressed. +-- -- The last string is the text produced by the key (for keys that produce -- printable characters, empty for control keys). - type KeyPress = ((String,[Modifiers]),String) keyboardF :: F i o -> F i (Either KeyPress o) @@ -34,10 +35,10 @@ keyboardF fud = idRightSP (concatMapSP post) >^^=< oeventF mask fud EnterWindowMask, LeaveWindowMask -- because of CTT implementation ] --- Output events: +-- | Output events: oeventF em fud = eventF em (idLeftF fud) --- Feed events to argument fudget: +-- | Feed events to argument fudget: eventF eventmask = serCompLeftToRightF . groupF startcmds eventK where startcmds = [XCmd $ ChangeWindowAttributes [CWEventMask eventmask], |
