|
|
|
|
@ -281,6 +281,10 @@ func (tv *TutView) InputMainViewFeed(event *tcell.EventKey) *tcell.EventKey {
|
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
if tv.tut.Config.Input.MainCompose.Match(event.Key(), event.Rune()) { |
|
|
|
|
tv.InitPost(nil, nil) |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
return tv.InputItem(event) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -293,6 +297,10 @@ func (tv *TutView) InputMainViewContent(event *tcell.EventKey) *tcell.EventKey {
|
|
|
|
|
tv.Timeline.ScrollDown() |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
if tv.tut.Config.Input.MainCompose.Match(event.Key(), event.Rune()) { |
|
|
|
|
tv.InitPost(nil, nil) |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
return tv.InputItem(event) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -321,10 +329,6 @@ func (tv *TutView) InputItem(event *tcell.EventKey) *tcell.EventKey {
|
|
|
|
|
if err != nil { |
|
|
|
|
return event |
|
|
|
|
} |
|
|
|
|
if tv.tut.Config.Input.MainCompose.Match(event.Key(), event.Rune()) { |
|
|
|
|
tv.InitPost(nil, nil) |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
switch item.Type() { |
|
|
|
|
case api.StatusType: |
|
|
|
|
return tv.InputStatus(event, item, item.Raw().(*mastodon.Status), nil, fd.Data.Type()) |
|
|
|
|
|