* 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;
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;
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.
* @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) {