glirc-2.33.1: Console IRC client

Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.EventLoop.Actions

Contents

Description

 
Synopsis

Documentation

data Action Source #

Actions that can be invoked using the keyboard.

Instances
Eq Action Source # 
Instance details

Defined in Client.EventLoop.Actions

Methods

(==) :: Action -> Action -> Bool #

(/=) :: Action -> Action -> Bool #

Ord Action Source # 
Instance details

Defined in Client.EventLoop.Actions

Read Action Source # 
Instance details

Defined in Client.EventLoop.Actions

Show Action Source # 
Instance details

Defined in Client.EventLoop.Actions

HasSpec Action Source # 
Instance details

Defined in Client.EventLoop.Actions

data KeyMap Source #

Lookup table for keyboard events to actions. Use with keyToAction.

Instances
Show KeyMap Source # 
Instance details

Defined in Client.EventLoop.Actions

keyToAction Source #

Arguments

:: KeyMap

actions

-> [Modifier]

jump modifier

-> Text

window names

-> [Modifier]

actual modifier

-> Key

key

-> Action

action

Lookup the action to perform in response to a particular key event.

initialKeyMap :: KeyMap Source #

Default key bindings

addKeyBinding Source #

Arguments

:: [Modifier]

modifiers

-> Key

key

-> Action

action

-> KeyMap

actions

-> KeyMap 

Bind a keypress event to a new action.

removeKeyBinding Source #

Arguments

:: [Modifier]

modifiers

-> Key

key

-> KeyMap

actions

-> KeyMap 

Unbind the action associated with a key.

Keys as text

actionName :: Action -> Text Source #

Render action as human-readable text.