mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00:00
Bug 755903 - Map the hardware camera shutter button to a key event [r=mwu]
This commit is contained in:
parent
3b3d834fe2
commit
44a83c6ca5
@ -261,6 +261,9 @@ maybeSendKeyEvent(int keyCode, bool pressed, uint64_t timeMs)
|
||||
case KEY_VOLUMEDOWN:
|
||||
sendKeyEvent(NS_VK_PAGE_DOWN, pressed, timeMs);
|
||||
break;
|
||||
case KEY_CAMERA:
|
||||
sendKeyEvent(NS_VK_PRINTSCREEN, pressed, timeMs);
|
||||
break;
|
||||
default:
|
||||
VERBOSE_LOG("Got unknown key event code. type 0x%04x code 0x%04x value %d",
|
||||
keyCode, pressed);
|
||||
|
Loading…
Reference in New Issue
Block a user