diff --git a/client/ui/qml/main2.qml b/client/ui/qml/main2.qml index 18b69795..83a6667f 100644 --- a/client/ui/qml/main2.qml +++ b/client/ui/qml/main2.qml @@ -32,6 +32,37 @@ Window { title: "AmneziaVPN" + Item { + id: defaultFocusItem + objectName: "defaultFocusItem" + + focus: true + + Keys.onTabPressed: { + FocusController.nextKeyTabItem() + } + + Keys.onBacktabPressed: { + FocusController.previousKeyTabItem() + } + + Keys.onUpPressed: { + FocusController.nextKeyUpItem() + } + + Keys.onDownPressed: { + FocusController.nextKeyDownItem() + } + + Keys.onLeftPressed: { + FocusController.nextKeyLeftItem() + } + + Keys.onRightPressed: { + FocusController.nextKeyRightItem() + } + } + Connections { objectName: "pageControllerConnections"