summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win/Piececmb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/win/Piececmb.cpp b/win/Piececmb.cpp
index 0bb3b31..4da474d 100644
--- a/win/Piececmb.cpp
+++ b/win/Piececmb.cpp
@@ -125,7 +125,9 @@ BOOL CPiecesCombo::PreTranslateMessage(MSG* pMsg)
int nVirtKey = (int) pMsg->wParam;
if (nVirtKey == VK_DELETE || nVirtKey == VK_BACK)
{
+ CEdit* Edit = (CEdit*)GetWindow(GW_CHILD);
m_bAutoComplete = FALSE;
+ Edit->ReplaceSel("");
}
else if (nVirtKey == VK_RETURN)
{