Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1013739 - [Dolphin][Flame][FFOS 1.4]Long touch the build-in keyboard
Browse files Browse the repository at this point in the history
and income a call or alarm,the key touching is invalid.
 - Reset the state when the keyboard is hidden.
  • Loading branch information
RudyLu committed Jun 12, 2014
1 parent 8d528bb commit 5aec190
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/keyboard/js/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1742,6 +1742,8 @@ function hideKeyboard() {
navigator.mozSettings.createLock().set({
'keyboard.current': undefined
});

clearTouchedKeys();
}

// Resize event handler
Expand Down Expand Up @@ -1972,6 +1974,11 @@ function clearTouchedKeys() {

hideAlternatives();
touchedKeys = {};

// Reset all the pending actions here.
clearTimeout(deleteTimeout);
clearInterval(deleteInterval);
clearTimeout(menuTimeout);
}
/*
* This is a helper to scroll the keyboard layout menu when the touch moves near
Expand Down

0 comments on commit 5aec190

Please sign in to comment.