Allow Scintilla-created clipboard to be accessed after quit.

This commit is contained in:
Jeff Young 2024-03-12 17:09:07 +00:00
parent 2a0ce409e3
commit 7ec2a1f09c
1 changed files with 12 additions and 0 deletions

View File

@ -338,10 +338,22 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent )
else if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() == 'X' )
{
m_te->Cut();
if( wxTheClipboard->Open() )
{
wxTheClipboard->Flush(); // Allow data to be available after closing KiCad
wxTheClipboard->Close();
}
}
else if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() == 'C' )
{
m_te->Copy();
if( wxTheClipboard->Open() )
{
wxTheClipboard->Flush(); // Allow data to be available after closing KiCad
wxTheClipboard->Close();
}
}
else if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() == 'V' )
{