Skip to content

Commit

Permalink
Fix suppr shortcut inactive if not in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cbossut committed Jan 26, 2020
1 parent 95d49e9 commit 65852b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Doc.elm
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,16 @@ update msg doc =
update (CollarMsg <| CEditor.CursorRight) doc

( Suppr, C e ) ->
case e.common.edit of
[ B i ] ->
case ( e.common.edit, e.tool ) of
( [ B i ], CEditor.Edit ) ->
update (CollarMsg <| CEditor.DeleteBead i) doc

_ ->
( doc, Cmd.none )

( Suppr, M e ) ->
case e.common.edit of
[ G id ] ->
case ( e.common.edit, e.tool ) of
( [ G id ], MEditor.Edit ) ->
update (MobileMsg <| MEditor.DeleteGear id) doc

_ ->
Expand Down

0 comments on commit 65852b7

Please sign in to comment.