fabiomcosta / mootools-meio-autocomplete

A complete mootools Autocomplete plugin
http://www.meiocodigo.com/projects/meio-autocomplete/
32 stars 14 forks source link

any key (for example shift), that adds no character to the input field, hides the list #31

Open cyberbeat opened 11 years ago

cyberbeat commented 11 years ago

example search for "xxxY":

I type "xxx" and get some suggestions (list opened) then I press "shift" (list closes immediatly) and hold shift to combine shift-key with "y" to write "xxxY"

The list should not hide, when pressing shift. also other keys like ctrl, pos1, insert,.. are affected.

I use chromium version 30.

The problem in source code:

the default action for the delayedKeyRepeat-Event for the field is "setupList", which hides the list, when the field-value is unchanged. I don't understand, why it hides then. For me it works fine, when I comment the line 341 like

    setupList: function(){
        this.inputedText = this.elements.field.node.get('value');
        if (this.inputedText !== this.oldInputedText){
            this.forceSetupList(this.inputedText);
        } else {

// this.elements.list.hide(); } return true; },