Skip to content

Commit

Permalink
Auto-focus modal 'OK' button to allow keypress
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr authored and Flet committed Oct 24, 2016
1 parent ed0f05a commit 4bb2056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/components/modal-ok-cancel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module.exports = class ModalOKCancel extends React.Component {
className='control ok'
primary
label={okText}
onClick={onOK} />
onClick={onOK}
autoFocus />
</div>
)
}
Expand Down

0 comments on commit 4bb2056

Please sign in to comment.