Use Ctrl+Ins to copy the selection in wxHtmlWindow

This commit is contained in:
Pavel Kalugin
2019-04-09 07:14:47 +03:00
committed by Vadim Zeitlin
parent 3db142e58f
commit ba5547d640

View File

@@ -1526,14 +1526,12 @@ void wxHtmlWindow::OnMouseLeave(wxMouseEvent& event)
void wxHtmlWindow::OnKeyUp(wxKeyEvent& event)
{
if ( IsSelectionEnabled() &&
(event.GetKeyCode() == 'C' && event.CmdDown()) )
if ( IsSelectionEnabled() && event.GetModifiers() == wxMOD_CONTROL &&
(event.GetKeyCode() == 'C' || event.GetKeyCode() == WXK_INSERT) )
{
wxClipboardTextEvent evt(wxEVT_TEXT_COPY, GetId());
evt.SetEventObject(this);
GetEventHandler()->ProcessEvent(evt);
ProcessWindowEvent(evt);
}
else
{