Skip to content

Commit

Permalink
[qtwayland] (Hacky) mapping of camera focus keys to qt keys. Contribu…
Browse files Browse the repository at this point in the history
…tes to MER#1817

Similar delight added to xkeyboard-config.
  • Loading branch information
pvuorela committed Sep 27, 2017
1 parent 1fee6bf commit fafda68
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 fafda68

Please sign in to comment.