File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
radio/src/gui/colorlcd/libui Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,8 @@ void TabsGroup::checkEvents()
363363#if defined(HARDWARE_KEYS)
364364void TabsGroup::onPressPGUP () { header->prevTab (); }
365365void TabsGroup::onPressPGDN () { header->nextTab (); }
366+ void TabsGroup::onLongPressPGUP () { header->prevTab (); }
367+ void TabsGroup::onLongPressPGDN () { header->nextTab (); }
366368void TabsGroup::onLongPressRTN () { onCancel (); }
367369#endif
368370
Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ class TabsGroup : public NavWindow
100100#if defined(HARDWARE_KEYS)
101101 void onPressPGUP () override ;
102102 void onPressPGDN () override ;
103+ void onLongPressPGUP () override ;
104+ void onLongPressPGDN () override ;
103105 void onLongPressRTN () override ;
104106#endif
105107};
Original file line number Diff line number Diff line change @@ -446,6 +446,14 @@ void NavWindow::onEvent(event_t event)
446446 onPressPGUP ();
447447 break ;
448448
449+ case EVT_KEY_LONG (KEY_PAGEDN):
450+ onLongPressPGDN ();
451+ break ;
452+
453+ case EVT_KEY_LONG (KEY_PAGEUP):
454+ onLongPressPGUP ();
455+ break ;
456+
449457 case EVT_KEY_LONG (KEY_EXIT):
450458 onLongPressRTN ();
451459 break ;
You can’t perform that action at this time.
0 commit comments