summaryrefslogtreecommitdiff
path: root/platform/android/android_keys_utils.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-21 21:56:01 +0200
committerGitHub <noreply@github.com>2020-07-21 21:56:01 +0200
commit25d59a5a1a30d0d7cc19de34f03d0d521cde5431 (patch)
tree55e42b43ab92ba2dec17513c68b15417a6e06c69 /platform/android/android_keys_utils.h
parentbb2c0d3c3a410a7eff22fee286349eaa3a650778 (diff)
parent166103c759cbac8bafd0d389bca1ecbce348b4c9 (diff)
Merge pull request #40398 from thebestnom/android_keyboard_modifiers_and_arrows
Android: Keyboard modifier and arrow key support for text edit
Diffstat (limited to 'platform/android/android_keys_utils.h')
-rw-r--r--platform/android/android_keys_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/android/android_keys_utils.h b/platform/android/android_keys_utils.h
index fb442f4c54..857bef02d1 100644
--- a/platform/android/android_keys_utils.h
+++ b/platform/android/android_keys_utils.h
@@ -148,6 +148,8 @@ enum {
AKEYCODE_BUTTON_START = 108,
AKEYCODE_BUTTON_SELECT = 109,
AKEYCODE_BUTTON_MODE = 110,
+ AKEYCODE_CONTROL_LEFT = 113,
+ AKEYCODE_CONTROL_RIGHT = 114,
// NOTE: If you add a new keycode here you must also add it to several other files.
// Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
@@ -246,6 +248,8 @@ static _WinTranslatePair _ak_to_keycode[] = {
{ KEY_BACKSLASH, AKEYCODE_BACKSLASH },
{ KEY_BRACKETLEFT, AKEYCODE_LEFT_BRACKET },
{ KEY_BRACKETRIGHT, AKEYCODE_RIGHT_BRACKET },
+ { KEY_CONTROL, AKEYCODE_CONTROL_LEFT },
+ { KEY_CONTROL, AKEYCODE_CONTROL_RIGHT },
{ KEY_UNKNOWN, 0 }
};
/*