Actually subscribe to key events.
This commit is contained in:
parent
575f6086cf
commit
8fca68438f
|
@ -60,4 +60,5 @@ subscriptions { clients, currentView } =
|
||||||
, uploadSuccessSub
|
, uploadSuccessSub
|
||||||
, uploadErrorSub
|
, uploadErrorSub
|
||||||
, keyDownsSub
|
, keyDownsSub
|
||||||
|
, keyUpsSub
|
||||||
]
|
]
|
||||||
|
|
|
@ -197,7 +197,7 @@ draftView ({ draft, currentUser, ctrlPressed } as model) =
|
||||||
Ok NoOp
|
Ok NoOp
|
||||||
else if code == 27 then
|
else if code == 27 then
|
||||||
Ok <| DraftEvent CloseAutocomplete
|
Ok <| DraftEvent CloseAutocomplete
|
||||||
else if code == 13 && ctrlPressed then
|
else if ctrlPressed && code == 13 then
|
||||||
Ok SubmitDraft
|
Ok SubmitDraft
|
||||||
else
|
else
|
||||||
Err "not handling that key"
|
Err "not handling that key"
|
||||||
|
|
Loading…
Reference in New Issue