autocomplete icon indicating copy to clipboard operation
autocomplete copied to clipboard

Can not enter "("

Open andchir opened this issue 10 years ago • 2 comments

Can not enter "(". "(" = ARROWDOWN

andchir avatar Dec 23 '14 22:12 andchir

This is what I did...

function manageKey (event) {
            var key = event.which,right;
         //the user hasn't finish pressing their key eg & is shift-7. Without this & = up arrow.
         if (event.shiftKey || event.ctrlKey) {
            return true;
         }

And I wanted the TAB key to behave more naturally.

case TAB:
               if (iOpen) { $input.trigger('pick.xdsoft');}
               return true;

There is only an issue with the TAB key when the next element is also an autocomplete.

prgwiz avatar Mar 19 '15 23:03 prgwiz

A little update for the TAB key:

                case TAB:
               if ( iOpen ) {
                  if ( $dropdown.find('div.active :visible').length === 0 ) {
                     $input.val(currentValue);
                  } else {
                     $input.trigger('pick.xdsoft');
                  }
               } else {
                  $input.val(currentValue);
               }
               return true;

prgwiz avatar Mar 19 '15 23:03 prgwiz