From 890080bd0db58e921e9341d13f788f11dcf107e5 Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Mon, 24 Oct 2016 21:21:00 +0200 Subject: [PATCH] Auto-focus modal 'OK' button to allow keypress --- src/renderer/components/modal-ok-cancel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/modal-ok-cancel.js b/src/renderer/components/modal-ok-cancel.js index ddfee4da43..e687b2a59c 100644 --- a/src/renderer/components/modal-ok-cancel.js +++ b/src/renderer/components/modal-ok-cancel.js @@ -17,7 +17,8 @@ module.exports = class ModalOKCancel extends React.Component { className='control ok' primary label={okText} - onClick={onOK} /> + onClick={onOK} + autoFocus /> ) }