@@ -80,7 +80,7 @@ func (m lazyTableModel) getCellRenderer() func(table.Model, string, table.CellPo
8080
8181 if position .Column == cellIDLogLevel {
8282 return removeClearSequence (
83- m .Application . getLogLevelStyle (
83+ m .getLogLevelStyle (
8484 m .renderedRows ,
8585 style ,
8686 position .RowID ,
@@ -94,7 +94,7 @@ func (m lazyTableModel) getCellRenderer() func(table.Model, string, table.CellPo
9494
9595func (m lazyTableModel ) handleKey (msg tea.KeyMsg , render bool ) (lazyTableModel , bool ) {
9696 // toggle the reverse display of items.
97- if key .Matches (msg , m .Application . keys .Reverse ) {
97+ if key .Matches (msg , m .keys .Reverse ) {
9898 m .reverse = ! m .reverse
9999 render = true
100100 }
@@ -128,21 +128,21 @@ func (m lazyTableModel) handleKey(msg tea.KeyMsg, render bool) (lazyTableModel,
128128 increaseOffset , decreaseOffset = decreaseOffset , increaseOffset
129129 }
130130
131- if key .Matches (msg , m .Application . keys .Down ) {
131+ if key .Matches (msg , m .keys .Down ) {
132132 m .follow = false
133133 if m .table .Cursor ()+ 1 == m .table .Height () {
134134 increaseOffset () // move the viewport
135135 }
136136 }
137137
138- if key .Matches (msg , m .Application . keys .Up ) {
138+ if key .Matches (msg , m .keys .Up ) {
139139 m .follow = false
140140 if m .table .Cursor () == 0 {
141141 decreaseOffset () // move the viewport
142142 }
143143 }
144144
145- if key .Matches (msg , m .Application . keys .GotoTop ) {
145+ if key .Matches (msg , m .keys .GotoTop ) {
146146 if m .reverse {
147147 // when follow is enabled, rendering will handle setting the offset to the correct value
148148 m .follow = true
@@ -153,7 +153,7 @@ func (m lazyTableModel) handleKey(msg tea.KeyMsg, render bool) (lazyTableModel,
153153 render = true
154154 }
155155
156- if key .Matches (msg , m .Application . keys .GotoBottom ) {
156+ if key .Matches (msg , m .keys .GotoBottom ) {
157157 if m .reverse {
158158 m .follow = false
159159 m .offset = 0
0 commit comments