Commit 3a037196 authored by binarious's avatar binarious Committed by GitHub
Browse files

fix: ignore alt, meta and ctrl key

parent df500c46
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -90,7 +90,12 @@ export class Mention {
      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;
        }