From 316933fa58e9847c835adc83d42c61073a4ce33a Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Wed, 26 Oct 2016 13:20:26 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"Fix=20issue=20#2758.=20Press=20Escape?= =?UTF-8?q?=20after=20a=20finished=20search=20to=20get=20back=20to=20?= =?UTF-8?q?=E2=80=A6=20(#2939)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 6377da8291adb2abb17e69db1e5eafb90de7ef0b. This was already fixed in https://github.com/nylas/N1/commit/a95c17bce357d99e020fadb7e86fe5c2703c4fa2 --- internal_packages/thread-search/lib/search-bar.jsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal_packages/thread-search/lib/search-bar.jsx b/internal_packages/thread-search/lib/search-bar.jsx index 88e5001df..2157f599c 100644 --- a/internal_packages/thread-search/lib/search-bar.jsx +++ b/internal_packages/thread-search/lib/search-bar.jsx @@ -90,12 +90,6 @@ export default class SearchBar extends React.Component { }, 150); } - _onKeyDown = (event) => { - if (event.keyCode === 27) { - this._onClearAndBlur(); - } - } - _doSearch = () => { SearchActions.querySubmitted(this.state.query); } @@ -148,7 +142,6 @@ export default class SearchBar extends React.Component { onChange={this._onValueChange} onFocus={this._onFocus} onBlur={this._onBlur} - onKeyDown={this._onKeyDown} />, loupeImg,