Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newKeyboardEvent :: (MonadDOM m, ToJSString type') => type' -> Maybe KeyboardEventInit -> m KeyboardEvent
- getModifierState :: (MonadDOM m, ToJSString keyArg) => KeyboardEvent -> keyArg -> m Bool
- getModifierState_ :: (MonadDOM m, ToJSString keyArg) => KeyboardEvent -> keyArg -> m ()
- initKeyboardEvent :: (MonadDOM m, ToJSString type', ToJSString keyIdentifier) => KeyboardEvent -> Maybe type' -> Bool -> Bool -> Maybe Window -> Maybe keyIdentifier -> Maybe Word -> Bool -> Bool -> Bool -> Bool -> Bool -> m ()
- pattern DOM_KEY_LOCATION_STANDARD :: forall a. (Eq a, Num a) => a
- pattern DOM_KEY_LOCATION_LEFT :: forall a. (Eq a, Num a) => a
- pattern DOM_KEY_LOCATION_RIGHT :: forall a. (Eq a, Num a) => a
- pattern DOM_KEY_LOCATION_NUMPAD :: forall a. (Eq a, Num a) => a
- getKey :: (MonadDOM m, FromJSString result) => KeyboardEvent -> m result
- getCode :: (MonadDOM m, FromJSString result) => KeyboardEvent -> m result
- getLocation :: MonadDOM m => KeyboardEvent -> m Word
- getCtrlKey :: MonadDOM m => KeyboardEvent -> m Bool
- getShiftKey :: MonadDOM m => KeyboardEvent -> m Bool
- getAltKey :: MonadDOM m => KeyboardEvent -> m Bool
- getMetaKey :: MonadDOM m => KeyboardEvent -> m Bool
- getRepeat :: MonadDOM m => KeyboardEvent -> m Bool
- getIsComposing :: MonadDOM m => KeyboardEvent -> m Bool
- getKeyIdentifier :: (MonadDOM m, FromJSString result) => KeyboardEvent -> m result
- getKeyLocation :: MonadDOM m => KeyboardEvent -> m Word
- getAltGraphKey :: MonadDOM m => KeyboardEvent -> m Bool
- getCharCode :: MonadDOM m => KeyboardEvent -> m Word
- getKeyCode :: MonadDOM m => KeyboardEvent -> m Word
- getWhich :: MonadDOM m => KeyboardEvent -> m Word
- newtype KeyboardEvent = KeyboardEvent {}
- gTypeKeyboardEvent :: JSM GType
Documentation
newKeyboardEvent :: (MonadDOM m, ToJSString type') => type' -> Maybe KeyboardEventInit -> m KeyboardEvent Source #
getModifierState :: (MonadDOM m, ToJSString keyArg) => KeyboardEvent -> keyArg -> m Bool Source #
getModifierState_ :: (MonadDOM m, ToJSString keyArg) => KeyboardEvent -> keyArg -> m () Source #
initKeyboardEvent :: (MonadDOM m, ToJSString type', ToJSString keyIdentifier) => KeyboardEvent -> Maybe type' -> Bool -> Bool -> Maybe Window -> Maybe keyIdentifier -> Maybe Word -> Bool -> Bool -> Bool -> Bool -> Bool -> m () Source #
pattern DOM_KEY_LOCATION_STANDARD :: forall a. (Eq a, Num a) => a Source #
pattern DOM_KEY_LOCATION_LEFT :: forall a. (Eq a, Num a) => a Source #
pattern DOM_KEY_LOCATION_RIGHT :: forall a. (Eq a, Num a) => a Source #
pattern DOM_KEY_LOCATION_NUMPAD :: forall a. (Eq a, Num a) => a Source #
getKey :: (MonadDOM m, FromJSString result) => KeyboardEvent -> m result Source #
getCode :: (MonadDOM m, FromJSString result) => KeyboardEvent -> m result Source #
getLocation :: MonadDOM m => KeyboardEvent -> m Word Source #
getCtrlKey :: MonadDOM m => KeyboardEvent -> m Bool Source #
getShiftKey :: MonadDOM m => KeyboardEvent -> m Bool Source #
getMetaKey :: MonadDOM m => KeyboardEvent -> m Bool Source #
getIsComposing :: MonadDOM m => KeyboardEvent -> m Bool Source #
getKeyIdentifier :: (MonadDOM m, FromJSString result) => KeyboardEvent -> m result Source #
getKeyLocation :: MonadDOM m => KeyboardEvent -> m Word Source #
getAltGraphKey :: MonadDOM m => KeyboardEvent -> m Bool Source #
getCharCode :: MonadDOM m => KeyboardEvent -> m Word Source #
getKeyCode :: MonadDOM m => KeyboardEvent -> m Word Source #
newtype KeyboardEvent Source #
Functions for this inteface are in JSDOM.KeyboardEvent. Base interface functions are in:
Instances
PToJSVal KeyboardEvent Source # | |
Defined in JSDOM.Types pToJSVal :: KeyboardEvent -> JSVal # | |
PFromJSVal KeyboardEvent Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> KeyboardEvent # | |
ToJSVal KeyboardEvent Source # | |
Defined in JSDOM.Types toJSVal :: KeyboardEvent -> JSM JSVal # toJSValListOf :: [KeyboardEvent] -> JSM JSVal # | |
FromJSVal KeyboardEvent Source # | |
Defined in JSDOM.Types fromJSVal :: JSVal -> JSM (Maybe KeyboardEvent) # fromJSValUnchecked :: JSVal -> JSM KeyboardEvent # fromJSValListOf :: JSVal -> JSM (Maybe [KeyboardEvent]) # fromJSValUncheckedListOf :: JSVal -> JSM [KeyboardEvent] # | |
MakeObject KeyboardEvent Source # | |
Defined in JSDOM.Types makeObject :: KeyboardEvent -> JSM Object # | |
IsUIEvent KeyboardEvent Source # | |
Defined in JSDOM.Types | |
IsEvent KeyboardEvent Source # | |
Defined in JSDOM.Types | |
IsGObject KeyboardEvent Source # | |
Defined in JSDOM.Types typeGType :: KeyboardEvent -> JSM GType |