Skip to content

Commit

Permalink
[xkeyboard-config] Map camera focus and snapshot keys. Contributes to…
Browse files Browse the repository at this point in the history
… MER#1817

Missing proper alternatives in XF86 range so hacked mappings to
ones at least roughly in the direction. Assuming client side, e.g.
qtwayland, knows this and uses better values.
  • Loading branch information
pvuorela committed Sep 27, 2017
1 parent 9b9e928 commit 5e3639e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xkeyboard-config/keycodes/evdev
Expand Up @@ -281,6 +281,8 @@ default xkb_keycodes "evdev" {
<I251> = 251; // #define KEY_BRIGHTNESS_CYCLE 243
<I252> = 252; // #define KEY_BRIGHTNESS_ZERO 244
<I253> = 253; // #define KEY_DISPLAY_OFF 245
<I536> = 536; // #define KEY_CAMERA_FOCUS 528
<I774> = 774; // #define KEY_CAMERA_SNAPSHOT 766 - not in vanilla kernel

// Fake keycodes for virtual keys
<LVL3> = 92;
Expand Down
3 changes: 3 additions & 0 deletions xkeyboard-config/symbols/jolla_vndr/sbj
Expand Up @@ -57,4 +57,7 @@ xkb_symbols "common-keys" {
// Some kernel input drivers send KEY_MEDIA from headset button.
// Work around by mapping to phone key.
key <I234> { [ XF86Phone ] };
// These should be camera focus and camera snapshot, but there are no better symbols available
key <I536> { [ XF86ContrastAdjust ] };
key <I774> { [ XF86WebCam ] };
};

0 comments on commit 5e3639e

Please sign in to comment.