Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #7134 from NejcZdovc/hotfix/#7132-tab-autofill
Browse files Browse the repository at this point in the history
Added tab press to select autocomplete
  • Loading branch information
bsclifton authored Feb 15, 2017
2 parents 4bc1587 + ed34cd7 commit 3316565
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/components/contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,11 @@ class ContextMenu extends ImmutableComponent {

switch (e.keyCode) {
case keyCodes.ENTER:
e.preventDefault()
case KeyCodes.TAB:
if (e.keyCode === keyCodes.ENTER) {
e.preventDefault()
}

e.stopPropagation()
if (currentIndex !== null) {
const action = selectedTemplate.getIn([currentIndex, 'click'])
Expand All @@ -297,7 +301,6 @@ class ContextMenu extends ImmutableComponent {
break

case KeyCodes.ESC:
case KeyCodes.TAB:
windowActions.resetMenuState()
break

Expand Down

0 comments on commit 3316565

Please sign in to comment.