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:
parent
9129a19c8a
commit
8799d26335
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user