Use Ctrl+Ins to copy the selection in wxHtmlWindow
This commit is contained in:
committed by
Vadim Zeitlin
parent
3db142e58f
commit
ba5547d640
@@ -1526,14 +1526,12 @@ void wxHtmlWindow::OnMouseLeave(wxMouseEvent& event)
|
|||||||
|
|
||||||
void wxHtmlWindow::OnKeyUp(wxKeyEvent& event)
|
void wxHtmlWindow::OnKeyUp(wxKeyEvent& event)
|
||||||
{
|
{
|
||||||
if ( IsSelectionEnabled() &&
|
if ( IsSelectionEnabled() && event.GetModifiers() == wxMOD_CONTROL &&
|
||||||
(event.GetKeyCode() == 'C' && event.CmdDown()) )
|
(event.GetKeyCode() == 'C' || event.GetKeyCode() == WXK_INSERT) )
|
||||||
{
|
{
|
||||||
wxClipboardTextEvent evt(wxEVT_TEXT_COPY, GetId());
|
wxClipboardTextEvent evt(wxEVT_TEXT_COPY, GetId());
|
||||||
|
|
||||||
evt.SetEventObject(this);
|
evt.SetEventObject(this);
|
||||||
|
ProcessWindowEvent(evt);
|
||||||
GetEventHandler()->ProcessEvent(evt);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user