diff options
author | 2015-09-10 15:51:05 -0700 | |
---|---|---|
committer | 2015-10-15 12:47:32 -0700 | |
commit | 1fdb8f31562eeef78167585a878eb0450310036b (patch) | |
tree | b6aeeb57abce26c843a2c03cf336fdb59650f402 /java/res | |
parent | de674ac02ee0090078f1ec0d286f26ef19cdeebb (diff) | |
download | latinime-1fdb8f31562eeef78167585a878eb0450310036b.tar.gz latinime-1fdb8f31562eeef78167585a878eb0450310036b.tar.xz latinime-1fdb8f31562eeef78167585a878eb0450310036b.zip |
Define shortcuts for toggling IME layouts.
Out of the box, we want Alt-Left to toggle Emojis, while Alt-Right
toggles the shifted symbols layout.
Bug: 23954008
Bug: 24369173
Change-Id: I93dd66fb469e5d0a831359ff3a786fe68e1d73ea
(cherry picked from commit 411841b374aa04e333ea5a438dfd539f49ec589a)
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/values/config.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/java/res/values/config.xml b/java/res/values/config.xml index 40760f686..33bcb0603 100644 --- a/java/res/values/config.xml +++ b/java/res/values/config.xml @@ -91,4 +91,22 @@ <fraction name="config_emoji_keyboard_row_height">33%p</fraction> <fraction name="config_emoji_keyboard_key_letter_size">68%p</fraction> <integer name="config_emoji_keyboard_max_page_key_count">21</integer> + + <!-- Key codes of hardware keys that can be used to toggle the Emoji layout. + Each array defines a comma-separated tuple containing: + 1. Key code constant from android.view.KeyEvent + 2. Meta mask (if any) from android.view.KeyEvent + Used in EmojiAltPhysicalKeyDetector and KeyboardSwitcher. --> + <string-array name="keyboard_switcher_emoji" translatable="false"> + <item>57,16</item> <!-- KeyEvent.KEYCODE_ALT_LEFT , KeyEvent.META_ALT_LEFT_ON --> + </string-array> + + <!-- Key codes of hardware keys that can be used to toggle the Symbols (Shifted) layout. + Each array defines a comma-separated tuple containing: + 1. Key code constant from android.view.KeyEvent + 2. Meta mask (if any) from android.view.KeyEvent + Used in EmojiAltPhysicalKeyDetector and KeyboardSwitcher. --> + <string-array name="keyboard_switcher_symbols_shifted" translatable="false"> + <item>58,32</item> <!-- KeyEvent.KEYCODE_ALT_RIGHT , KeyEvent.META_ALT_RIGHT_ON --> + </string-array> </resources> |