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

Commit

Permalink
Merge pull request #20438 from RudyLu/keyboard/Bug1013739-persistent_…
Browse files Browse the repository at this point in the history
…alternativeMenu

Keyboard/bug1013739 persistent alternative menu
  • Loading branch information
rvandermeulen committed Jun 13, 2014
2 parents 01086cb + 5aec190 commit 164644d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/keyboard/js/keyboard.js
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 164644d

Please sign in to comment.