From 4355911db43b4bc83c6da2e76336492a750688d7 Mon Sep 17 00:00:00 2001 From: Manish Kushare Date: Sun, 3 Apr 2022 12:51:44 +0530 Subject: [PATCH] Adds autoFocus attribute in input element to support enter functionality (#2701) --- frontend/src/Editor/Editor.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index bc7341fa28..117cbb5914 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -862,6 +862,7 @@ class Editor extends React.Component { defaultValue={this.state.initVersionName} onChange={(e) => this.setState({ initVersionName: e.target.value })} onKeyPress={(e) => this.handleKeyPress(e)} + autoFocus={true} />