Skip to content

Navigation using arrow keys #187

@unxed

Description

@unxed

This patch adds navigation using arrow keys, just in GUI apps dialogs

_dn4l_tv_enable_arrow_keys.zip

diff --git a/source/tvision/twindow.cpp b/source/tvision/twindow.cpp
index 7c0d178..ca6994f 100644
--- a/source/tvision/twindow.cpp
+++ b/source/tvision/twindow.cpp
@@ -142,13 +142,17 @@ void TWindow::handleEvent( TEvent& event )
                 break;
             }
     else if( event.what == evKeyDown )
-            switch (event.keyDown.keyCode)
+            switch (ctrlToArrow(event.keyDown.keyCode))
                 {
                 case  kbTab:
+                case  kbDown:
+                case  kbRight:
                     focusNext(False);
                     clearEvent(event);
                     break;
                 case  kbShiftTab:
+                case  kbUp:
+                case  kbLeft:
                     focusNext(True);
                     clearEvent(event);
                     break;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions