hbro-0.8.0.0: A minimal KISS compliant browser

Safe HaskellSafe-Infered

Hbro.Keys

Contents

Synopsis

Key event callbacks

withKeys :: ([Modifier] -> String -> IO ()) -> EventM EKey BoolSource

Retrieve modifiers and pressed keys, and forward them to a handler.

simpleKeyEventCallback :: KeysMap -> KeyEventCallbackSource

Look for a callback associated to the given modifiers and pressed keys and trigger it, if any.

Key event handlers

simpleKeyEventHandler :: KeyEventCallback -> ConnectId WebView -> WebView -> EventM EKey BoolSource

Basic key handler which doesn't support sequential keystrokes.

advancedKeyEventHandler :: KeyEventCallback -> ConnectId WebView -> WebView -> EventM EKey BoolSource

Key handler with sequential keystrokes support.

Util

keysListToMap :: KeysList -> KeysMapSource

Convert key bindings list to a map.