]> git.saurik.com Git - wxWidgets.git/commitdiff
Restore the note about auto-repeat in key events documentation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 22 Oct 2010 16:33:38 +0000 (16:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 22 Oct 2010 16:33:38 +0000 (16:33 +0000)
Closes #12598.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/event.h

index cbe556d8677c51d217dc1afaf856e4f411c2fbf2..47b779a3eeb9bf34d80f1d0cd900473af8d632f9 100644 (file)
@@ -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