mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Navigate items using keyboard
- previous/next item with `.,` - confirm with `c` - unconfirm with `u`
This commit is contained in:
@ -10,6 +10,7 @@ import Comp.ItemDetail.Model exposing (Msg(..))
|
||||
import Comp.ItemDetail.Update
|
||||
import Comp.ItemDetail.View exposing (..)
|
||||
import Data.Flags exposing (Flags)
|
||||
import Data.ItemNav exposing (ItemNav)
|
||||
import Data.UiSettings exposing (UiSettings)
|
||||
import Html exposing (..)
|
||||
import Page exposing (Page(..))
|
||||
@ -24,11 +25,11 @@ emptyModel =
|
||||
Comp.ItemDetail.Model.emptyModel
|
||||
|
||||
|
||||
update : Nav.Key -> Flags -> Maybe String -> UiSettings -> Msg -> Model -> ( Model, Cmd Msg, Sub Msg )
|
||||
update : Nav.Key -> Flags -> ItemNav -> UiSettings -> Msg -> Model -> ( Model, Cmd Msg, Sub Msg )
|
||||
update =
|
||||
Comp.ItemDetail.Update.update
|
||||
|
||||
|
||||
view : { prev : Maybe String, next : Maybe String } -> UiSettings -> Model -> Html Msg
|
||||
view : ItemNav -> UiSettings -> Model -> Html Msg
|
||||
view =
|
||||
Comp.ItemDetail.View.view
|
||||
|
Reference in New Issue
Block a user