File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,11 @@ local function incPage(inc)
150
150
end
151
151
152
152
local function incLine (inc )
153
- currentLine = incMax (currentLine , inc , # (Page .fields ))
153
+ currentLine = clipValue (currentLine + inc , 1 , # (Page .fields ))
154
154
end
155
155
156
156
local function incMenu (inc )
157
- menuActive = incMax (menuActive , inc , # (menuList ))
157
+ menuActive = clipValue (menuActive + inc , 1 , # (menuList ))
158
158
end
159
159
160
160
local function requestPage ()
@@ -331,9 +331,9 @@ function run_ui(event)
331
331
incPage (- 1 )
332
332
elseif event == userEvent .release .menu or event == userEvent .press .pageDown then
333
333
incPage (1 )
334
- elseif event == userEvent .release .plus or event == userEvent .dial .left then
334
+ elseif event == userEvent .release .plus or event == userEvent .repeatPress . plus or event == userEvent . dial .left then
335
335
incLine (- 1 )
336
- elseif event == userEvent .release .minus or event == userEvent .dial .right then
336
+ elseif event == userEvent .release .minus or event == userEvent .repeatPress . minus or event == userEvent . dial .right then
337
337
incLine (1 )
338
338
elseif event == userEvent .release .enter then
339
339
local field = Page .fields [currentLine ]
You can’t perform that action at this time.
0 commit comments