diff --git a/apps/keyboard/js/keyboard.js b/apps/keyboard/js/keyboard.js index f9a2d313cbf8..83bb08485f59 100644 --- a/apps/keyboard/js/keyboard.js +++ b/apps/keyboard/js/keyboard.js @@ -1590,6 +1590,8 @@ function hideKeyboard() { settingsPromiseManager.set({ 'keyboard.current': undefined }); + + clearTouchedKeys(); } // Resize event handler @@ -1757,6 +1759,11 @@ function clearTouchedKeys() { hideAlternatives(); touchedKeys = {}; + + // Reset all the pending actions here. + clearTimeout(deleteTimeout); + clearInterval(deleteInterval); + clearTimeout(menuTimeout); } // Hide the keyboard via input method API