git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24669
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
};
// Copies selection to clipboard if the clipboard support is available
};
// Copies selection to clipboard if the clipboard support is available
- void CopySelection(ClipboardType t = Secondary);
+ bool CopySelection(ClipboardType t = Secondary);
#if wxUSE_CLIPBOARD
// Convert selection to text:
#if wxUSE_CLIPBOARD
// Convert selection to text:
{
SelectLine(CalcUnscrolledPosition(event.GetPosition()));
{
SelectLine(CalcUnscrolledPosition(event.GetPosition()));
+ (void) CopySelection();
if ( IsSelectionEnabled() &&
event.GetKeyCode() == 'C' && event.ControlDown() )
{
if ( IsSelectionEnabled() &&
event.GetKeyCode() == 'C' && event.ControlDown() )
{
+ (void) CopySelection();
}
}
void wxHtmlWindow::OnCopy(wxCommandEvent& WXUNUSED(event))
{
}
}
void wxHtmlWindow::OnCopy(wxCommandEvent& WXUNUSED(event))
{
+ (void) CopySelection();
}
void wxHtmlWindow::OnDoubleClick(wxMouseEvent& event)
}
void wxHtmlWindow::OnDoubleClick(wxMouseEvent& event)
{
SelectWord(CalcUnscrolledPosition(event.GetPosition()));
{
SelectWord(CalcUnscrolledPosition(event.GetPosition()));
- CopySelection(Primary);
+ (void) CopySelection(Primary);
m_lastDoubleClick = wxGetLocalTimeMillis();
}
m_lastDoubleClick = wxGetLocalTimeMillis();
}