Skip to content

Commit

Permalink
Prevented shift-tab from selecting a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddanbrown committed Jul 3, 2016
1 parent a11d524 commit 1041832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/assets/js/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ module.exports = function (ngApp, events) {
changeActiveTo(newActive, suggestionElems);
}
// Enter or tab key
else if (event.keyCode === 13 || event.keyCode === 9) {
else if ((event.keyCode === 13 || event.keyCode === 9) && !event.shiftKey) {
let text = suggestionElems[active].textContent;
currentInput[0].value = text;
currentInput.focus();
Expand Down

0 comments on commit 1041832

Please sign in to comment.