Skip to content

Commit

Permalink
Fix ESC key handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Jan 7, 2018
1 parent 7b1521f commit 26e79c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/code/_code_block.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ export class EuiCodeBlockImpl extends Component {
<code
ref={ref => { this.codeFullScreen = ref; }}
className={codeClasses}
tabIndex={0}
onKeyDown={this.onKeyDown}
>
{children}
</code>
Expand Down

0 comments on commit 26e79c1

Please sign in to comment.