Skip to content

Commit f54c458

Browse files
authored
Add Clipboard events. (#1121)
- [x] Adds `cut`, `copy` and `paste`.
1 parent b825e84 commit f54c458

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Miso/Event/Types.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module Miso.Event.Types
3636
, dragEvents
3737
, pointerEvents
3838
, mediaEvents
39+
, clipboardEvents
3940
) where
4041
-----------------------------------------------------------------------------
4142
import Data.Aeson (FromJSON(..), withText)
@@ -220,3 +221,11 @@ mediaEvents = M.fromList
220221
, ("waiting", True)
221222
]
222223
-----------------------------------------------------------------------------
224+
-- | Clipboard events
225+
clipboardEvents :: Events
226+
clipboardEvents = M.fromList
227+
[ ("cut", False)
228+
, ("copy", False)
229+
, ("paste", False)
230+
]
231+
-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)