forked from varia/go-sh-manymanuals
fix: disable keymap for viewport
This commit is contained in:
parent
c9ebb272a1
commit
238adeb4dd
5
gshmm.go
5
gshmm.go
@ -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().
|
||||
|
Loading…
Reference in New Issue
Block a user