Bug 755903 - Map the hardware camera shutter button to a key event [r=mwu]

This commit is contained in:
Fabrice Desré 2012-05-16 14:52:44 -07:00
parent 3b3d834fe2
commit 44a83c6ca5

View File

@ -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);