From 5effc1cf588408f77dbd24b8e0a63f934726c778 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 Oct 2010 16:33:38 +0000 Subject: [PATCH] Restore the note about auto-repeat in key events documentation. Closes #12598. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/event.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface/wx/event.h b/interface/wx/event.h index cbe556d867..47b779a3ee 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -1283,6 +1283,11 @@ enum wxKeyCategoryFlags event.Skip() in your @c wxEVT_KEY_DOWN handler. Not doing may also prevent accelerators defined using this key from working. + @note If a key is maintained in a pressed state, you will typically get a + lot of (automatically generated) key down events but only one key up + one at the end when the key is released so it is wrong to assume that + there is one up event corresponding to each down one. + @note For Windows programmers: The key and char events in wxWidgets are similar to but slightly different from Windows @c WM_KEYDOWN and @c WM_CHAR events. In particular, Alt-x combination will generate a -- 2.45.2