~stolowski/+junk/unity-2d-no-results-hint

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/launchermenu.cpp

Fix right-to-left keyboard navigation in the dash and in the launcher (LP: #886686). Fixes: https://bugs.launchpad.net/bugs/886686. Approved by Albert Astals Cid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include "launchermenu.h"
21
21
#include "launcheritem.h"
 
22
#include "utils.h"
22
23
 
23
24
#include <QAction>
24
25
#include <QFile>
330
331
void
331
332
LauncherContextualMenu::keyPressEvent(QKeyEvent* event)
332
333
{
333
 
    int key = event->key();
 
334
    int key = Unity2dUtils::switchLeftRightKeys(event->key());
334
335
    if (key == Qt::Key_Left || key == Qt::Key_Escape) {
335
336
        Q_EMIT dismissedByKeyEvent();
336
337
        hide();