зеркало из https://github.com/mozilla/gecko-dev.git
removed some old D&D code that was commented out, fixed processing of arrows
keys by returning the status from dispatch.
This commit is contained in:
Родитель
c4faf68d49
Коммит
750eda4b46
|
@ -119,7 +119,6 @@ nsWindow::nsWindow() : nsBaseWidget()
|
||||||
|
|
||||||
#ifdef NEW_DRAG_AND_DROP
|
#ifdef NEW_DRAG_AND_DROP
|
||||||
mNativeDragTarget = nsnull;
|
mNativeDragTarget = nsnull;
|
||||||
//mDragSource = nsnull;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -150,11 +149,6 @@ nsWindow::~nsWindow()
|
||||||
|
|
||||||
NS_IF_RELEASE(mHitMenu); // this should always have already been freed by the deselect
|
NS_IF_RELEASE(mHitMenu); // this should always have already been freed by the deselect
|
||||||
|
|
||||||
#ifdef NEW_DRAG_AND_DROP
|
|
||||||
//NS_IF_RELEASE(mDragTarget);
|
|
||||||
//NS_IF_RELEASE(mDragSource);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
delete mHitSubMenus;
|
delete mHitSubMenus;
|
||||||
|
|
||||||
//XXX Temporary: Should not be caching the font
|
//XXX Temporary: Should not be caching the font
|
||||||
|
@ -612,16 +606,6 @@ nsresult nsWindow::StandardWindowCreate(nsIWidget *aParent,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//mDragDrop = new CfDragDrop();
|
|
||||||
//mDragDrop->AddRef();
|
|
||||||
//mDragDrop->Initialize(this);
|
|
||||||
|
|
||||||
/*mDragTarget = new CfDropTarget(*mDragDrop);
|
|
||||||
mDragTarget->AddRef();
|
|
||||||
|
|
||||||
mDragSource = new CfDropSource(*mDragDrop);
|
|
||||||
mDragSource->AddRef();*/
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// call the event callback to notify about creation
|
// call the event callback to notify about creation
|
||||||
|
@ -2015,8 +1999,7 @@ BOOL nsWindow::OnKeyDown( UINT aVirtualKeyCode, UINT aScanCode)
|
||||||
// if we enter this if statement we expect not to get a WM_CHAR
|
// if we enter this if statement we expect not to get a WM_CHAR
|
||||||
if (asciiKey) {
|
if (asciiKey) {
|
||||||
//printf("Dispatching Key Down [%d]\n", asciiKey);
|
//printf("Dispatching Key Down [%d]\n", asciiKey);
|
||||||
DispatchKeyEvent(NS_KEY_DOWN, asciiKey, aVirtualKeyCode);
|
return DispatchKeyEvent(NS_KEY_DOWN, asciiKey, aVirtualKeyCode);
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// always let the def proc process a WM_KEYDOWN
|
// always let the def proc process a WM_KEYDOWN
|
||||||
|
@ -2051,8 +2034,7 @@ BOOL nsWindow::OnKeyUp( UINT aVirtualKeyCode, UINT aScanCode)
|
||||||
|
|
||||||
if (asciiKey) {
|
if (asciiKey) {
|
||||||
//printf("Dispatching Key Up [%d]\n", asciiKey);
|
//printf("Dispatching Key Up [%d]\n", asciiKey);
|
||||||
DispatchKeyEvent(NS_KEY_UP, asciiKey, aVirtualKeyCode);
|
return DispatchKeyEvent(NS_KEY_UP, asciiKey, aVirtualKeyCode);
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// always let the def proc process a WM_KEYUP
|
// always let the def proc process a WM_KEYUP
|
||||||
|
|
Загрузка…
Ссылка в новой задаче