mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-09 14:17:10 +01:00
Bug1579 NOT fixed by this...
... but this may be a necessary piece of any fix that might be found. See also recent commitc67842f525. wxDF_UNICODETEXT replacing wxDF_TEXT was a necessary but not sufficient step to fix a cut-copy-paste problem on Mac, and I suspect the same will be true here. See also commitsbbd369df1band9036c00152for the commits that introduced this code. The partial fix they accomplished in 2.1.3 is no longer working, whether because of wxWidgets changes, or macOS changes, or both.
This commit is contained in:
@@ -514,7 +514,7 @@ int FileDialog::ShowModal()
|
||||
// the entire text field, ignoring the insertion cursor, and ignoring
|
||||
// which control really has the focus.
|
||||
id handler;
|
||||
if (wxTheClipboard->IsSupported(wxDF_TEXT)) {
|
||||
if (wxTheClipboard->IsSupported(wxDF_UNICODETEXT)) {
|
||||
handler = [
|
||||
NSEvent addLocalMonitorForEventsMatchingMask:NSKeyDownMask
|
||||
handler:^NSEvent *(NSEvent *event)
|
||||
@@ -581,7 +581,7 @@ int FileDialog::ShowModal()
|
||||
[sPanel setNameFieldStringValue:file.AsNSString()];
|
||||
returnCode = [sPanel runModal];
|
||||
ModalFinishedCallback(sPanel, returnCode);
|
||||
if (wxTheClipboard->IsSupported(wxDF_TEXT))
|
||||
if (wxTheClipboard->IsSupported(wxDF_UNICODETEXT))
|
||||
[NSEvent removeMonitor:handler];
|
||||
}
|
||||
else
|
||||
|
||||
@@ -225,8 +225,8 @@ void NumValidatorBase::OnPaste(wxClipboardTextEvent& event)
|
||||
}
|
||||
|
||||
wxClipboardLocker cb;
|
||||
// if (!wxClipboard::Get()->IsSupported(wxDataFormat(wxDF_TEXT)))
|
||||
if (!wxClipboard::Get()->IsSupported(wxDF_TEXT))
|
||||
// if (!wxClipboard::Get()->IsSupported(wxDataFormat(wxDF_UNICODETEXT)))
|
||||
if (!wxClipboard::Get()->IsSupported(wxDF_UNICODETEXT))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user