KBreakout: Make arrow keys control bar again

Review Request #127622 - Created April 10, 2016 and submitted

Julian Helfferich
master, Applications/16.04

Since the port to QtQuick/QML arrow keys no longer move the bar as expected (bug 348090). I have fixed this problem by adding a keyEventHandler to main.qml. The corresponding functions in CanvasWidget are no longer needed.

While this fix resolves the bug, I found that to fire the ball (Space key) a QAction is used. Is this the preferred way or is it not necessary in this case?

Played the game: Bar moves on arrow keys.

Frederik Schwarzer
Julian Helfferich
Julian Helfferich
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit d7d0968b0594d6971127c1ec836b0f77fac08274 by Julian Helfferich to branch Applications/16.04.