From add80872f18fb42920d80cf189dc61fd6b3c31d6 Mon Sep 17 00:00:00 2001 From: junh_eee Date: Mon, 19 Sep 2022 17:52:10 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=80=EB=8F=84=20=EA=B2=80=EC=83=89=20-=20?= =?UTF-8?q?=EC=97=94=ED=84=B0=EC=8B=9C=20=EA=B2=80=EC=83=89=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/basis/flight/plan/FlightPlanAreaMap.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/basis/flight/plan/FlightPlanAreaMap.js b/src/components/basis/flight/plan/FlightPlanAreaMap.js index 373a143..3def08b 100644 --- a/src/components/basis/flight/plan/FlightPlanAreaMap.js +++ b/src/components/basis/flight/plan/FlightPlanAreaMap.js @@ -172,6 +172,12 @@ const FlightPlanAreaMap = props => { map.morph(latlng, 16, options) } + const handleEnter = e => { + if (e.key == 'Enter') { + handleSearch(); + } + }; + return ( @@ -213,10 +219,11 @@ const FlightPlanAreaMap = props => { type='text' id='searchInput' name='searchInput' - placeholder='검색명을 입력하세요.' - onChange={handleChange} bsSize='sm' autocomplete='off' + placeholder='검색명을 입력하세요.' + onChange={handleChange} + onKeyPress={handleEnter} />