alecpl
2011-09-21 075e9d5ba25ece5b7fed5470efb38272d519fa27
program/js/app.js
@@ -3490,12 +3490,14 @@
        return rcube_event.cancel(e);
      case 9:  // tab
        if (mod == SHIFT_KEY)
          break;
        if (mod == SHIFT_KEY || !this.ksearch_visible()) {
          this.ksearch_hide();
          return;
        }
      case 13:  // enter
        if (this.ksearch_selected === null || !this.ksearch_value)
          break;
        if (!this.ksearch_visible())
          return false;
        // insert selected address and hide ksearch pane
        this.insert_recipient(this.ksearch_selected);
@@ -3520,6 +3522,11 @@
    return true;
  };
  this.ksearch_visible = function()
  {
    return (this.ksearch_selected !== null && this.ksearch_selected !== undefined && this.ksearch_value);
  };
  this.ksearch_select = function(node)
  {
    var current = $('#rcmksearchSelected');