mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-05 16:43:52 +01:00
Mac: avoid assertion violations from KeyboardCapture.cpp... (#658)
... when the NSEvent is not accessible
This commit is contained in:
@@ -341,8 +341,9 @@ private:
|
|||||||
// as in the combo box case of bug 1252. We can't compute it!
|
// 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.
|
// This makes a difference only when there is a capture handler.
|
||||||
// It's never the case yet that there is one.
|
// 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];
|
NSString *c = [mEvent charactersIgnoringModifiers];
|
||||||
|
|||||||
Reference in New Issue
Block a user