From 49b27956feefc12c56d9a57ba04b99b8fe1d2317 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Fri, 12 Jul 2019 15:41:01 -0700 Subject: [PATCH] feat(keyboard): feature phone buttons (#4694) I got a KaiOS phone with some awesome buttons on it I hadn't seen before on the web. This adds the following buttons to our default keyboard layout: `SoftLeft` `SoftRight` `Camera` `Call` `EndCall` `VolumeUp` `VolumeDown` --- lib/USKeyboardLayout.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/USKeyboardLayout.js b/lib/USKeyboardLayout.js index f630d5d6..7ac27688 100644 --- a/lib/USKeyboardLayout.js +++ b/lib/USKeyboardLayout.js @@ -277,5 +277,12 @@ module.exports = { '{': {'keyCode': 219, 'key': '{', 'code': 'BracketLeft'}, '|': {'keyCode': 220, 'key': '|', 'code': 'Backslash'}, '}': {'keyCode': 221, 'key': '}', 'code': 'BracketRight'}, - '"': {'keyCode': 222, 'key': '"', 'code': 'Quote'} + '"': {'keyCode': 222, 'key': '"', 'code': 'Quote'}, + 'SoftLeft': {'key': 'SoftLeft', 'code': 'SoftLeft', 'location': 4}, + 'SoftRight': {'key': 'SoftRight', 'code': 'SoftRight', 'location': 4}, + 'Camera': {'keyCode': 44, 'key': 'Camera', 'code': 'Camera', 'location': 4}, + 'Call': {'key': 'Call', 'code': 'Call', 'location': 4}, + 'EndCall': {'keyCode': 95, 'key': 'EndCall', 'code': 'EndCall', 'location': 4}, + 'VolumeDown': {'keyCode': 182, 'key': 'VolumeDown', 'code': 'VolumeDown', 'location': 4}, + 'VolumeUp': {'keyCode': 183, 'key': 'VolumeUp', 'code': 'VolumeUp', 'location': 4}, }; \ No newline at end of file