mirror of
https://github.com/antonmedv/fx.git
synced 2024-08-17 14:10:46 +03:00
parent
adf3775828
commit
cacddc7bcb
2
main.go
2
main.go
@ -311,6 +311,7 @@ func (m *model) handleKey(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
|
||||
for i := 0; i < m.viewHeight(); i++ {
|
||||
m.down()
|
||||
}
|
||||
m.scrollIntoView()
|
||||
|
||||
case key.Matches(msg, keyMap.HalfPageUp):
|
||||
m.cursor = 0
|
||||
@ -323,6 +324,7 @@ func (m *model) handleKey(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
|
||||
for i := 0; i < m.viewHeight()/2; i++ {
|
||||
m.down()
|
||||
}
|
||||
m.scrollIntoView()
|
||||
|
||||
case key.Matches(msg, keyMap.GotoTop):
|
||||
m.head = m.top
|
||||
|
Loading…
Reference in New Issue
Block a user