fix: finish profile editor preview scrolling
This commit is contained in:
@@ -540,6 +540,16 @@ func newProfileDeleteConfirmation(selected profile.Profile, final, active bool)
|
||||
}
|
||||
|
||||
func (m Model) updateForm(key tea.KeyMsg) (tea.Model, tea.Cmd) {
|
||||
if m.form.currentField() == profile.BypassField {
|
||||
switch key.String() {
|
||||
case "pgup":
|
||||
m.form.scrollBypassPreview(-5)
|
||||
return m, nil
|
||||
case "pgdown":
|
||||
m.form.scrollBypassPreview(5)
|
||||
return m, nil
|
||||
}
|
||||
}
|
||||
switch key.Type {
|
||||
case tea.KeyEsc:
|
||||
m.page = profilesPage
|
||||
|
||||
Reference in New Issue
Block a user