Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / keyboard / resources / elements / kb-keyboard.js
index 9e0708a..ceb8f68 100644 (file)
@@ -368,7 +368,7 @@ Polymer('kb-keyboard', {
    * Otherwise, the keyboard layout for 'text' type will be loaded.
    */
   inputTypeChanged: function() {
-    // Disable layout switching at accessbility mode.
+    // Disable layout switching at accessibility mode.
     if (this.config && this.config.a11ymode)
       return;
 
@@ -424,7 +424,8 @@ Polymer('kb-keyboard', {
       return;
     }
     // Triggers swipe hintText if it's a purely vertical swipe.
-    if (!(direction & (SwipeDirection.LEFT | SwipeDirection.RIGHT))) {
+    if (this.activeKeyset.flick &&
+        !(direction & (SwipeDirection.LEFT | SwipeDirection.RIGHT))) {
       // Check if event is relevant to us.
       if ((!detail.endSwipe) || (detail.isComplex))
         return;
@@ -745,7 +746,7 @@ Polymer('kb-keyboard', {
     this.onNonControlKeyTyped();
   },
 
-  /*
+  /**
    * Handles key-longpress event that is sent by kb-key-base.
    * @param {CustomEvent} event The key-longpress event dispatched by
    *     kb-key-base.
@@ -770,7 +771,7 @@ Polymer('kb-keyboard', {
    * @param {Sound} sound The id of the audio tag.
    */
   playSound: function(sound) {
-    if (!sound || sound == Sound.NONE)
+    if (!SOUND_ENABLED || !sound || sound == Sound.NONE)
       return;
     var pool = this.sounds[sound];
     if (!pool) {