Skip to content

Commit 78f2967

Browse files
added support for “previous page”
Keys are now: - next page: DOWN - previous page: UP - pop-up menu: long DOWN
1 parent 33dd9e1 commit 78f2967

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SCRIPTS/BF/events.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ return
55
minus = EVT_MINUS_FIRST,
66
plus = EVT_PLUS_FIRST,
77
pageDown = EVT_PAGEDN_FIRST,
8-
pageUp = EVT_PAGEUP_FIRST
8+
pageUp = EVT_PAGEUP_FIRST or EVT_UP_BREAK
99
},
1010
longPress = {
1111
enter = EVT_ENTER_LONG,
12-
menu = EVT_MENU_LONG or EVT_UP_LONG
12+
menu = EVT_MENU_LONG or EVT_DOWN_LONG
1313
},
1414
repeatPress = {
1515
minus = EVT_MINUS_REPT,
@@ -18,7 +18,7 @@ return
1818
release = {
1919
enter = EVT_ENTER_BREAK,
2020
exit = EVT_EXIT_BREAK,
21-
menu = EVT_MENU_BREAK or EVT_UP_BREAK,
21+
menu = EVT_MENU_BREAK or EVT_DOWN_BREAK,
2222
minus = EVT_MINUS_BREAK,
2323
plus = EVT_PLUS_BREAK
2424
},

src/SCRIPTS/BF/ui.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function run_ui(event)
282282
if (event == userEvent.longPress.menu) then -- Taranis QX7 / X9
283283
menuActive = 1
284284
currentState = pageStatus.displayMenu
285-
elseif userEvent.press.pageUp and (event == userEvent.longPress.enter) then -- Horus
285+
elseif userEvent.press.pageDown and (event == userEvent.longPress.enter) then -- Horus
286286
menuActive = 1
287287
killEnterBreak = 1
288288
currentState = pageStatus.displayMenu

0 commit comments

Comments
 (0)