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:
committed by
Vadim Zeitlin
parent
a37629b035
commit
a052557af3
@@ -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.
|
||||
|
Reference in New Issue
Block a user