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 #13617 from EverythingMe/935845-ime-composition
Browse files Browse the repository at this point in the history
Bug 935845 - E.me search box does not start search with IME composed strings [r=crdlc,evyatron]
  • Loading branch information
Ran Ben Aharon committed Nov 13, 2013
2 parents a3efc73 + 73c3fb1 commit 02e8187
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/homescreen/everything.me/modules/Searchbar/Searchbar.js
Expand Up @@ -39,8 +39,7 @@ Evme.Searchbar = new function Evme_Searchbar() {

el.addEventListener('focus', cbFocus);
el.addEventListener('blur', cbBlur);
el.addEventListener('keydown', inputKeyDown);
el.addEventListener('keyup', inputKeyUp);
el.addEventListener('input', inputChanged);
el.addEventListener('contextmenu', onContextMenu);

var elButtonClear = Evme.$('#button-clear');
Expand Down Expand Up @@ -154,12 +153,10 @@ Evme.Searchbar = new function Evme_Searchbar() {
Evme.EventHandler.trigger(NAME, 'clearButtonClick');
}

function inputKeyDown(e) {
function inputChanged(e) {
window.clearTimeout(timeoutPause);
window.clearTimeout(timeoutIdle);
}

function inputKeyUp(e) {
var currentValue = el.value;

if (currentValue !== value) {
Expand Down Expand Up @@ -194,7 +191,7 @@ Evme.Searchbar = new function Evme_Searchbar() {
// before the paste.
//
window.setTimeout(function onTimeout() {
inputKeyUp({
inputChanged({
'keyCode': ''
});
}, 0);
Expand Down

0 comments on commit 02e8187

Please sign in to comment.