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