From a301d1db33fdecb0e66495b51019922a9b040c1f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 6 Apr 2018 16:45:04 +0200 Subject: Conversation view keyboard navigation --- framework/qml/ListView.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'framework/qml/ListView.qml') diff --git a/framework/qml/ListView.qml b/framework/qml/ListView.qml index 52942b65..3017e377 100644 --- a/framework/qml/ListView.qml +++ b/framework/qml/ListView.qml @@ -29,6 +29,14 @@ ListView { clip: true ScrollBar.vertical: Kube.ScrollBar { id: scrollBar } + Keys.onPressed: { + if (event.matches(StandardKey.MoveToNextLine)) { + incrementCurrentIndex() + } else if (event.matches(StandardKey.MoveToPreviousLine)) { + decrementCurrentIndex() + } + } + Kube.ScrollHelper { id: scrollHelper flickable: root -- cgit v1.2.3