Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Utility functions for widget keyboard handling.
Synopsis
- isShortCutControl :: WidgetEnv s e -> KeyMod -> Bool
- isKeyboardCopy :: WidgetEnv s e -> SystemEvent -> Bool
- isKeyboardPaste :: WidgetEnv s e -> SystemEvent -> Bool
- isKeyboardCut :: WidgetEnv s e -> SystemEvent -> Bool
- isKeyboardUndo :: WidgetEnv s e -> SystemEvent -> Bool
- isKeyboardRedo :: WidgetEnv s e -> SystemEvent -> Bool
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.