From 238adeb4dddacc5425c749cd24f0b5015e8e9610 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 14 May 2023 19:40:09 +0200 Subject: [PATCH] fix: disable keymap for viewport --- gshmm.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gshmm.go b/gshmm.go index de51973..b193b55 100644 --- a/gshmm.go +++ b/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().