Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Xindi Xu committed Jul 20, 2020
1 parent b8b1b79 commit d994d50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/picker/nimble-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ export default class NimblePicker extends React.PureComponent {
case 'Tab':
// Focus on first category anchor
this.anchors.buttons.firstChild.focus()
this.setState({ emoji: null })
return

case 'ArrowLeft':
Expand Down Expand Up @@ -620,6 +621,7 @@ export default class NimblePicker extends React.PureComponent {
break

case 'Escape':
console.log('here')
// Jump to search text input
this.search.input.focus()
handled = true
Expand Down
1 change: 1 addition & 0 deletions src/components/skins-dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default class SkinsDot extends Skins {
break

case 'Escape':
e.preventDefault()
this.onClose(e)
break

Expand Down

0 comments on commit d994d50

Please sign in to comment.