Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'camera_keys_hack' into 'mer-5.4'
Browse files Browse the repository at this point in the history
[qtwayland] (Hacky) mapping of camera focus keys to qt keys. Contributes to MER#1817

See merge request !8
  • Loading branch information
pvuorela committed Oct 2, 2017
2 parents 1fee6bf + fafda68 commit 7d06a8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shared/qwaylandxkb.cpp
Expand Up @@ -135,6 +135,12 @@ static const uint32_t KeyTbl[] = {

XKB_KEY_XF86Phone, Qt::Key_ToggleCallHangup,

// Hack: there are no directly suitable xkbcommon keycodes to use for camera + camera focus
// so mapping camera hardware keys into these in xkeyboard-config and then back to
// sensible qt values here.
XKB_KEY_XF86WebCam, Qt::Key_Camera,
XKB_KEY_XF86ContrastAdjust, Qt::Key_CameraFocus,

0, 0
};

Expand Down

0 comments on commit 7d06a8b

Please sign in to comment.