monomer-1.1.1.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Util.Keyboard

Description

Utility functions for widget keyboard handling.

Synopsis

Documentation

isShortCutControl :: WidgetEnv s e -> KeyMod -> Bool Source #

Checks if Ctrl/Cmd, depending on OS, is pressed.

isKeyboardCopy :: WidgetEnv s e -> SystemEvent -> Bool Source #

Checks if a copy shortcut has been pressed.

isKeyboardPaste :: WidgetEnv s e -> SystemEvent -> Bool Source #

Checks if a paste shortcut has been pressed.

isKeyboardCut :: WidgetEnv s e -> SystemEvent -> Bool Source #

Checks if a cut shortcut has been pressed.

isKeyboardUndo :: WidgetEnv s e -> SystemEvent -> Bool Source #

Checks if an undo shortcut has been pressed.

isKeyboardRedo :: WidgetEnv s e -> SystemEvent -> Bool Source #

Checks if a redo shortcut has been pressed.