From 98a911dcb487ced3fdd66cc0bda1cfe76d60142d Mon Sep 17 00:00:00 2001 From: Baranovskiy Konstantin Date: Wed, 16 Jan 2019 15:16:26 +0200 Subject: [PATCH] Custom grid editors: cancel changes on escape. If user closes grid cell editor with Escape key any changes must be canceled. --- common/widgets/grid_text_button_helpers.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/widgets/grid_text_button_helpers.cpp b/common/widgets/grid_text_button_helpers.cpp index ae17a36407..d6ff3b2b4e 100644 --- a/common/widgets/grid_text_button_helpers.cpp +++ b/common/widgets/grid_text_button_helpers.cpp @@ -146,6 +146,7 @@ void GRID_CELL_TEXT_BUTTON::ApplyEdit( int aRow, int aCol, wxGrid* aGrid ) void GRID_CELL_TEXT_BUTTON::Reset() { + Combo()->SetValue( m_value ); }