summaryrefslogtreecommitdiffstats
path: root/ui/keyboard
diff options
context:
space:
mode:
authorbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-26 20:41:14 +0000
committerbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-26 20:41:14 +0000
commitfc8343145da34382b9164f8177c7fb8243d93bfb (patch)
tree1ccc1b3fb79919a544237b67b51d1c160aab393f /ui/keyboard
parent57cf978844f365885c897eaa748573822796af32 (diff)
downloadchromium_src-fc8343145da34382b9164f8177c7fb8243d93bfb.zip
chromium_src-fc8343145da34382b9164f8177c7fb8243d93bfb.tar.gz
chromium_src-fc8343145da34382b9164f8177c7fb8243d93bfb.tar.bz2
Dismiss longpress UI when lifting finger not over accent keys
BUG=254401 TEST= 1. enable virtual keyboard on ChromeOS (in about:flags) 2. long press e key 3. once the long press UI shows up, move your finger to area outside of accents keys 4. life finger expected: long press UI should dismiss and no charactor should be typed in input box. Review URL: https://chromiumcodereview.appspot.com/17836003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard')
-rw-r--r--ui/keyboard/resources/elements/kb-accent-container.html2
-rw-r--r--ui/keyboard/resources/elements/kb-accent-key.html1
2 files changed, 1 insertions, 2 deletions
diff --git a/ui/keyboard/resources/elements/kb-accent-container.html b/ui/keyboard/resources/elements/kb-accent-container.html
index f2bb3ec..3eeb1e0 100644
--- a/ui/keyboard/resources/elements/kb-accent-container.html
+++ b/ui/keyboard/resources/elements/kb-accent-container.html
@@ -4,7 +4,7 @@
-- found in the LICENSE file.
-->
-<element name="kb-accent-container" attributes="keyset" on-key-up="up">
+<element name="kb-accent-container" attributes="keyset" on-pointerup="up">
<template>
<content select="#{{keyset}}"></content>
</template>
diff --git a/ui/keyboard/resources/elements/kb-accent-key.html b/ui/keyboard/resources/elements/kb-accent-key.html
index aa4d0c5..d4a4462 100644
--- a/ui/keyboard/resources/elements/kb-accent-key.html
+++ b/ui/keyboard/resources/elements/kb-accent-key.html
@@ -59,7 +59,6 @@
up: function(event) {
var char = this.char || this.textContent;
insertText(char);
- this.send('key-up', {});
}
});
</script>