summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_resources.grd
diff options
context:
space:
mode:
authorbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-25 21:34:29 +0000
committerbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-25 21:34:29 +0000
commit13fd814676efd5c1291eaf734289f72c8de0558e (patch)
tree24c5c5985fb461913adb4ea5a405898c137026d0 /ui/keyboard/keyboard_resources.grd
parent88cc208163f2ed1261ff759d5eda3f1250b6b129 (diff)
downloadchromium_src-13fd814676efd5c1291eaf734289f72c8de0558e.zip
chromium_src-13fd814676efd5c1291eaf734289f72c8de0558e.tar.gz
chromium_src-13fd814676efd5c1291eaf734289f72c8de0558e.tar.bz2
Support accent keys
Mocks are here: https://folio.googleplex.com/cros-vkey/#/07-vkey-longpress-E.png accents keys should be summoned by long press on a key. If there is not accent keys associated with the long pressed key, nothing should happen. To add accent keys, here are the steps(temporary, may change in the future): 1. create a template element in the corresponding keyset element (make sure the template is the first child of the keyset) 2. create a structure like this (take lower case letter e for example): <kb-accent-set id="e" offset="2"> <kb-accent-key>&#xUUUU</kb-accent-key> <kb-accent-key>&#xUUUU</kb-accent-key> <kb-accent-key class="active">e</kb-accent-key> <kb-accent-key>&#xUUUU</kb-accent-key> </kb-accent-set> where id is the same as the letter we long pressed; offset represent how many keys should display on the left side of the pressed key(in our case, two keys should display on the left side of e after long pressed). class active should apply to the key that overlay the long pressed key (in our case, the overlay key should be the same as the original key). 3. add accents attribute the the e kb-key element, e.g. <kb-key accents="e">e</kb-key> BUG=247734 Review URL: https://chromiumcodereview.appspot.com/16781005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208558 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_resources.grd')
-rw-r--r--ui/keyboard/keyboard_resources.grd3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_resources.grd b/ui/keyboard/keyboard_resources.grd
index 26bad75..eaf3e1e 100644
--- a/ui/keyboard/keyboard_resources.grd
+++ b/ui/keyboard/keyboard_resources.grd
@@ -16,6 +16,9 @@
<includes>
<include name="IDR_KEYBOARD_API_ADAPTER_JS" file="resources/api_adapter.js" type="BINDATA" />
<include name="IDR_KEYBOARD_CONSTANTS_JS" file="resources/constants.js" type="BINDATA" />
+ <include name="IDR_KEYBOARD_ELEMENTS_ACCENT_CONTAINER" file="resources/elements/kb-accent-container.html" type="BINDATA" />
+ <include name="IDR_KEYBOARD_ELEMENTS_ACCENT_KEY" file="resources/elements/kb-accent-key.html" type="BINDATA" />
+ <include name="IDR_KEYBOARD_ELEMENTS_ACCENT_SET" file="resources/elements/kb-accent-set.html" type="BINDATA" />
<include name="IDR_KEYBOARD_ELEMENTS_KEY" file="resources/elements/kb-key.html" type="BINDATA" />
<include name="IDR_KEYBOARD_ELEMENTS_KEYBOARD" file="resources/elements/kb-keyboard.html" type="BINDATA" />
<include name="IDR_KEYBOARD_ELEMENTS_KEYSET" file="resources/elements/kb-keyset.html" type="BINDATA" />