Fix handling of "Cancel" button in wxSearchCtrl under OS X.
Pressing it results in a control action with an empty, but not null, string. Recognize it correctly. See #16869.
This commit is contained in:
committed by
Vadim Zeitlin
parent
31e1387541
commit
7065e26fb3
@@ -155,7 +155,7 @@ public :
|
||||
if ( wxpeer )
|
||||
{
|
||||
NSString *searchString = [m_searchField stringValue];
|
||||
if ( searchString == nil )
|
||||
if ( searchString == nil || !searchString.length )
|
||||
{
|
||||
wxpeer->HandleSearchFieldCancelHit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user