1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

Mac: avoid assertion violations from KeyboardCapture.cpp... (#658)

... when the NSEvent is not accessible
This commit is contained in:
Paul Licameli 2020-09-03 13:33:59 -04:00 committed by GitHub
parent 9129a19c8a
commit 8799d26335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -341,8 +341,9 @@ private:
// as in the combo box case of bug 1252. We can't compute it!
// This makes a difference only when there is a capture handler.
// It's never the case yet that there is one.
wxASSERT(false);
return chars;
// Return just a one-character string.
return event.GetUnicodeKey();
}
NSString *c = [mEvent charactersIgnoringModifiers];