mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-25 09:17:27 +03:00
Added enter close events
This commit is contained in:
parent
82a773d988
commit
7bd7866993
@ -88,8 +88,10 @@ explorer keydown processQuery topContent s0 = do
|
||||
keyClosings <- pure $
|
||||
let f a = case a of Cancel -> Just Nothing; Accept a -> Just (Just a); _ -> Nothing
|
||||
in fmapMaybe f actions
|
||||
let mouseClosings = pushAlways (\_ -> sample (current selection)) $ domEvent Click selectableRegion
|
||||
pure (updated valids, s', leftmost [keyClosings, mouseClosings])
|
||||
let sampleCurrent _ = sample (current selection)
|
||||
let mouseClosings = pushAlways sampleCurrent $ domEvent Click selectableRegion
|
||||
let enterClosings = pushAlways sampleCurrent $ textInputGetEnter searchbox
|
||||
pure (updated valids, s', leftmost [keyClosings, mouseClosings, enterClosings])
|
||||
pure (updatedS, closings)
|
||||
|
||||
safeIndex :: Int -> [a] -> Maybe a
|
||||
|
Loading…
Reference in New Issue
Block a user