fix: disable keymap for viewport

This commit is contained in:
decentral1se 2023-05-14 19:40:09 +02:00
parent c9ebb272a1
commit 238adeb4dd
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410

View File

@ -120,6 +120,11 @@ func initialModel(width int, height int) model {
BorderForeground(lipgloss.Color("63")).
Padding(2)
// NOTE: disable the default keymap, we don't want to be able to
// scroll on this viewport or control it in any view. it's
// read-only
datasheetViewport.KeyMap = viewport.KeyMap{}
loadDatasheetSpinner := spinner.New()
loadDatasheetSpinner.Spinner = spinner.Dot
loadDatasheetSpinner.Style = lipgloss.NewStyle().