diff options
author | B. Stack <bgstack15@gmail.com> | 2023-01-22 13:56:55 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-01-22 13:56:55 -0500 |
commit | 75e05bc441382db69c842a64c562738cb749214e (patch) | |
tree | 698b60b3b4b914bf7958cf1174d0373909bf1e8f /wx+/no_flicker.h | |
parent | add upstream 11.29 (diff) | |
download | FreeFileSync-75e05bc441382db69c842a64c562738cb749214e.tar.gz FreeFileSync-75e05bc441382db69c842a64c562738cb749214e.tar.bz2 FreeFileSync-75e05bc441382db69c842a64c562738cb749214e.zip |
add upstream 12.0
Diffstat (limited to 'wx+/no_flicker.h')
-rw-r--r-- | wx+/no_flicker.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wx+/no_flicker.h b/wx+/no_flicker.h index 185ee052..1c91bd48 100644 --- a/wx+/no_flicker.h +++ b/wx+/no_flicker.h @@ -123,7 +123,7 @@ void setTextWithUrls(wxRichTextCtrl& richCtrl, const wxString& newText) using KeyEventsFun = void(*)(wxKeyEvent& event); static const KeyEventsFun onKeyEvents = [](wxKeyEvent& event) { - wxRichTextCtrl& richCtrl = dynamic_cast<UserData*>(event.GetEventUserData())->richCtrl; //unclear if we can rely on event.GetEventObject() == richCtrl + wxRichTextCtrl& richCtrl2 = dynamic_cast<UserData*>(event.GetEventUserData())->richCtrl; //unclear if we can rely on event.GetEventObject() == richCtrl //CTRL/SHIFT + INS is broken for wxRichTextCtrl on Windows/Linux (apparently never was a thing on macOS) if (event.ControlDown()) @@ -131,8 +131,8 @@ void setTextWithUrls(wxRichTextCtrl& richCtrl, const wxString& newText) { case WXK_INSERT: case WXK_NUMPAD_INSERT: - assert(richCtrl.CanCopy()); //except when no selection - richCtrl.Copy(); + assert(richCtrl2.CanCopy()); //except when no selection + richCtrl2.Copy(); return; } @@ -141,8 +141,8 @@ void setTextWithUrls(wxRichTextCtrl& richCtrl, const wxString& newText) { case WXK_INSERT: case WXK_NUMPAD_INSERT: - assert(richCtrl.CanPaste()); //except wxTE_READONLY - richCtrl.Paste(); + assert(richCtrl2.CanPaste()); //except wxTE_READONLY + richCtrl2.Paste(); return; } event.Skip(); |