1
1
module DOM.HTML.Indexed where
2
2
3
- import Data.DateTime (DateTime )
4
- import Data.MediaType (MediaType )
3
+ import DOM.Event.ClipboardEvent (ClipboardEvent )
5
4
import DOM.Event.Types (Event , MouseEvent , KeyboardEvent , FocusEvent , TouchEvent )
6
5
import DOM.HTML.Event.Types (DragEvent )
7
6
import DOM.HTML.Indexed.ButtonType (ButtonType )
@@ -10,14 +9,16 @@ import DOM.HTML.Indexed.DirValue (DirValue)
10
9
import DOM.HTML.Indexed.FormMethod (FormMethod )
11
10
import DOM.HTML.Indexed.InputType (InputType )
12
11
import DOM.HTML.Indexed.KindValue (KindValue )
13
- import DOM.HTML.Indexed.MenuitemType (MenuitemType )
14
12
import DOM.HTML.Indexed.MenuType (MenuType )
13
+ import DOM.HTML.Indexed.MenuitemType (MenuitemType )
15
14
import DOM.HTML.Indexed.OnOff (OnOff )
16
15
import DOM.HTML.Indexed.OrderedListType (OrderedListType )
17
16
import DOM.HTML.Indexed.PreloadValue (PreloadValue )
18
17
import DOM.HTML.Indexed.ScopeValue (ScopeValue )
19
18
import DOM.HTML.Indexed.StepValue (StepValue )
20
19
import DOM.HTML.Indexed.WrapValue (WrapValue )
20
+ import Data.DateTime (DateTime )
21
+ import Data.MediaType (MediaType )
21
22
22
23
type CSSPixel = Int
23
24
@@ -111,7 +112,14 @@ type FocusEvents r =
111
112
| r
112
113
)
113
114
114
- type InteractiveEvents r = FocusEvents (TransitionEvents (KeyEvents (PointerEvents (TouchEvents (DragEvents (MouseEvents r ))))))
115
+ type ClipboardEvents r =
116
+ ( onCopy :: ClipboardEvent
117
+ , onCut :: ClipboardEvent
118
+ , onPaste :: ClipboardEvent
119
+ | r
120
+ )
121
+
122
+ type InteractiveEvents r = ClipboardEvents (FocusEvents (TransitionEvents (KeyEvents (PointerEvents (TouchEvents (DragEvents (MouseEvents r )))))))
115
123
116
124
type GlobalProperties r = GlobalAttributes (GlobalEvents r )
117
125
0 commit comments