summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/input_ime.json
diff options
context:
space:
mode:
authornona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-12 04:45:21 +0000
committernona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-12 04:45:21 +0000
commitae1a2b0c8a2ef824cb62049315ce26def695ca7c (patch)
tree7173231ad1d17c36c715f0b9f3dc613a57d1b1d0 /chrome/common/extensions/api/input_ime.json
parent4e1321684f72954a9ac7a0ce6b8527f1cb5340db (diff)
downloadchromium_src-ae1a2b0c8a2ef824cb62049315ce26def695ca7c.zip
chromium_src-ae1a2b0c8a2ef824cb62049315ce26def695ca7c.tar.gz
chromium_src-ae1a2b0c8a2ef824cb62049315ce26def695ca7c.tar.bz2
Add code attribute into onKeyEvent argument.
The "code" holds the identification of physical key. Unlike to "key" value, this value is not affected on current keyboard layout or modifier state. BUG=169993 Review URL: https://codereview.chromium.org/12224031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/input_ime.json')
-rw-r--r--chrome/common/extensions/api/input_ime.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/input_ime.json b/chrome/common/extensions/api/input_ime.json
index 939408b..43b70dc 100644
--- a/chrome/common/extensions/api/input_ime.json
+++ b/chrome/common/extensions/api/input_ime.json
@@ -15,6 +15,7 @@
"type": {"type": "string", "description": "One of keyup or keydown.", "enum": ["keyup", "keydown"]},
"requestId": {"type": "string", "description": "The ID of the request."},
"key": {"type": "string", "description": "Value of the key being pressed"},
+ "code": {"type": "string", "description": "Value of the physical key being pressed. The value is not affected by current keyboard layout or modifier state."},
"altKey": {"type": "boolean", "optional": true, "description": "Whether or not the ALT key is pressed."},
"ctrlKey": {"type": "boolean", "optional": true, "description": "Whether or not the CTRL key is pressed."},
"shiftKey": {"type": "boolean", "optional": true, "description": "Whether or not the SHIFT key is pressed."}