mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-19 16:19:10 +08:00
FIX: imgui textinput cannot paste on macos
jira: STUDIO-5070、STUDIO-5365 Change-Id: Iea8f41e12744ecda0fbb95c1a8f2e014a7cdc384
This commit is contained in:
parent
5a581fcf16
commit
5011621ad8
@ -2501,12 +2501,12 @@ void ImGuiWrapper::destroy_fonts_texture() {
|
|||||||
|
|
||||||
const char* ImGuiWrapper::clipboard_get(void* user_data)
|
const char* ImGuiWrapper::clipboard_get(void* user_data)
|
||||||
{
|
{
|
||||||
ImGuiWrapper *self = reinterpret_cast<ImGuiWrapper*>(user_data);
|
ImGuiWrapper* self = reinterpret_cast<ImGuiWrapper*>(user_data);
|
||||||
|
|
||||||
const char* res = "";
|
const char* res = "";
|
||||||
|
|
||||||
if (wxTheClipboard->Open()) {
|
if (wxTheClipboard->Open()) {
|
||||||
if (wxTheClipboard->IsSupported(wxDF_TEXT)) {
|
if (wxTheClipboard->IsSupported(wxDF_TEXT) || wxTheClipboard->IsSupported(wxDF_UNICODETEXT)) {
|
||||||
wxTextDataObject data;
|
wxTextDataObject data;
|
||||||
wxTheClipboard->GetData(data);
|
wxTheClipboard->GetData(data);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user