Commit 9dd1eee4 authored by dmacfarlane's avatar dmacfarlane
Browse files

Merge branch 'patch-2' of https://github.com/binarious/angular2-mentions into binarious-patch-2

parents fb416eda 3a037196
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -90,7 +90,12 @@ export class MentionDirective {
      this.showSearchList(nativeElement);
    }
    else if (this.startPos >= 0 && !this.escapePressed) {
      if (event.keyCode != KEY_SHIFT && pos > this.startPos) {
      if (!event.shiftKey &&
          !event.metaKey &&
          !event.altKey &&
          !event.ctrlKey &&
          pos > this.startPos
      ) {
        if (event.keyCode === KEY_SPACE) {
          this.startPos = -1;
        }