Add wxKeyEvent::IsAutoRepeat()

The new method is currently supported in Qt, Cocoa, MSW ports (i.e. all
major ones except for wxGTK).

Keyboard example updated with a "Repeat" column.

Closes https://github.com/wxWidgets/wxWidgets/pull/2414
This commit is contained in:
Marc Jessome
2021-07-03 19:03:03 -04:00
committed by Vadim Zeitlin
parent a37629b035
commit a052557af3
6 changed files with 23 additions and 1 deletions

View File

@@ -1547,6 +1547,15 @@ public:
*/
bool IsKeyInCategory(int category) const;
/**
Returns true if this event is an auto-repeat of the key, false if this
is the initial key press.
@since 3.1.6
@onlyfor{wxosx,wxmsw,wxQt}
*/
bool IsAutoRepeat() const;
//@{
/**
Obtains the position (in client coordinates) at which the key was pressed.