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 13, 2014
1 parent 2ba4556 commit c422a1d
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 @@ -1589,6 +1589,8 @@ function hideKeyboard() {
settingsPromiseManager.set({
'keyboard.current': undefined
});

clearTouchedKeys();
}

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

hideAlternatives();
touchedKeys = {};

// Reset all the pending actions here.
clearTimeout(deleteTimeout);
clearInterval(deleteInterval);
clearTimeout(menuTimeout);
}

// Hide the keyboard via input method API
Expand Down

0 comments on commit c422a1d

Please sign in to comment.