* Don't allow dragging modifier keys around until we actually support

changing them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29775 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-03-29 11:06:44 +00:00
parent 5968be8e9e
commit f6bfc822c6

View File

@ -188,7 +188,8 @@ KeyboardLayoutView::MouseMoved(BPoint point, uint32 transit,
|| fabs(point.y - fClickPoint.y) > 4)) {
// start dragging
Key* key = _KeyAt(fClickPoint);
if (key == NULL)
// TODO: remove once we support moving modifier keys around
if (key == NULL || fKeymap->IsModifierKey(key->code))
return;
BRect frame = _FrameFor(key);