Index: trunk/phase3/skins/common/mwsuggest.js |
— | — | @@ -553,6 +553,7 @@ |
554 | 554 | if(r == null) |
555 | 555 | return; // not our event |
556 | 556 | |
| 557 | + os_last_keypress = 0; |
557 | 558 | // some browsers won't generate keypressed for arrow keys, catch it |
558 | 559 | if(os_keypressed_count == 0){ |
559 | 560 | os_processKey(r,os_cur_keypressed,targ); |
— | — | @@ -596,9 +597,9 @@ |
597 | 598 | var d = new Date() |
598 | 599 | var now = d.getTime(); |
599 | 600 | if(now - os_last_keypress < 120){ |
600 | | - os_last_keypress = now; |
601 | 601 | return; |
602 | 602 | } |
| 603 | + os_last_keypress = now; |
603 | 604 | } |
604 | 605 | |
605 | 606 | os_keypressed_count++; |
— | — | @@ -616,7 +617,6 @@ |
617 | 618 | os_mouse_moved = false; |
618 | 619 | |
619 | 620 | os_cur_keypressed = (e.keyCode == undefined) ? e.which : e.keyCode; |
620 | | - os_last_keypress = 0; |
621 | 621 | os_keypressed_count = 0; |
622 | 622 | } |
623 | 623 | |