mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-12-01 17:32:52 +03:00
Updates
This commit is contained in:
parent
085ba506ae
commit
4d61bb0ebe
@ -26,6 +26,7 @@ handleEvent :: Event -> St -> IO St
|
||||
handleEvent e st =
|
||||
case e of
|
||||
EvKey KEsc [] -> exitSuccess
|
||||
EvKey KEnter [] -> error $ editStr $ stEditor st
|
||||
ev -> return $ st { stEditor = editEvent ev (stEditor st) }
|
||||
|
||||
initialState :: St
|
||||
|
Loading…
Reference in New Issue
Block a user