git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-05-19 16:47:38 +00:00
parent 43191e0c5a
commit 11604fb890
5 changed files with 21 additions and 6 deletions

View File

@@ -168,7 +168,7 @@ wxLayoutWindow::OnMouse(int eventId, wxMouseEvent& event)
{
// found is only true if we are really over an object, not just
// behind it
if(found && u)
if(found && u && ! m_Selecting)
{
if(!m_HandCursor)
SetCursor(wxCURSOR_HAND);
@@ -331,6 +331,9 @@ wxLayoutWindow::OnChar(wxKeyEvent& event)
{
switch(keyCode)
{
case WXK_INSERT:
Copy();
break;
case WXK_DELETE :
case 'd':
m_llist->Delete(1);
@@ -350,6 +353,12 @@ wxLayoutWindow::OnChar(wxKeyEvent& event)
case 'v':
Paste();
break;
case 'c':
Copy();
break;
case 'x':
Cut();
break;
#ifdef WXLAYOUT_DEBUG
case WXK_F1:
m_llist->SetFont(-1,-1,-1,-1,true); // underlined
@@ -382,7 +391,10 @@ wxLayoutWindow::OnChar(wxKeyEvent& event)
Paste();
break;
case WXK_DELETE :
m_llist->Delete(1);
if(event.ShiftDown())
Cut();
else
m_llist->Delete(1);
break;
case WXK_BACK: // backspace
if(m_llist->MoveCursorHorizontally(-1)) m_llist->Delete(1);