Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
fix(TCMention): check if event.shiftKey is active for @ and #
Browse files Browse the repository at this point in the history
* Closes #1
  • Loading branch information
tomchentw committed Oct 23, 2015
1 parent d3c272c commit 5207462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ Your mention implementation
}
break;
case atKeyCode:
if (-1 !== this.activeTriggerList.indexOf(`@`)) {
if (!!event.shiftKey && -1 !== this.activeTriggerList.indexOf(`@`)) {
this.handleTriggerKeydown(`@`, event);
} else {
this.updatePanelContentWithDelay();
}
break;
case hashKeyCode:
if (-1 !== this.activeTriggerList.indexOf(`#`)) {
if (!!event.shiftKey && -1 !== this.activeTriggerList.indexOf(`#`)) {
this.handleTriggerKeydown(`#`, event);
} else {
this.updatePanelContentWithDelay();
Expand Down

0 comments on commit 5207462

Please sign in to comment.