License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Event handling for the scenario launch configuration dialog.
Synopsis
- updateFocusRing :: EditingLaunchParams -> EventM Name LaunchOptions ()
- cacheValidatedInputs :: EventM Name LaunchOptions ()
- cacheValidatedSeedInput :: EventM Name LaunchOptions ()
- handleFBEvent :: BrickEvent Name AppEvent -> EventM Name AppState ()
- handleLaunchOptionsEvent :: ScenarioInfoPair -> BrickEvent Name AppEvent -> EventM Name AppState ()
Documentation
cacheValidatedSeedInput :: EventM Name LaunchOptions () Source #
This is split out from the combined parameter-validation function because validating the seed is cheap, and shouldn't have to pay the cost of re-parsing script code as the user types in the seed selection field.
handleFBEvent :: BrickEvent Name AppEvent -> EventM Name AppState () Source #
If the FileBrowser
is in "search mode", then we allow
more of the key events to pass through. Otherwise,
we intercept things like "q" (for quit) and Space (so that
we can restrict file selection to at most one).
handleLaunchOptionsEvent :: ScenarioInfoPair -> BrickEvent Name AppEvent -> EventM Name AppState () Source #