Somehow I find it more useful to be able to do both horizontal and vertical home/end than that row-snapping thingie. I'll just commit this, and see if anyone disagrees ;)

This commit is contained in:
Erik Faye-Lund 2008-10-14 16:35:50 +00:00
parent 45a9afd6bf
commit 062ee83a9f

View File

@ -970,41 +970,13 @@ LRESULT TrackView::onKeyDown(UINT keyCode, UINT /*flags*/)
break; break;
case VK_HOME: case VK_HOME:
if (GetKeyState(VK_CONTROL) < 0) if (GetKeyState(VK_CONTROL) < 0) setEditTrack(0);
{ else setEditRow(0);
setEditRow(0);
}
else
{
int remainder = editRow % 0x80;
if(remainder)
{
setEditRow(editRow - remainder);
}
else
{
setEditRow(editRow - 0x80);
}
}
break; break;
case VK_END: case VK_END:
if (GetKeyState(VK_CONTROL) < 0) if (GetKeyState(VK_CONTROL) < 0) setEditTrack(getTrackCount() - 1);
{ else setEditRow(rows - 1);
setEditRow(rows-1);
}
else
{
int remainder = editRow % 0x80;
if(remainder)
{
setEditRow(0x80 + editRow - remainder);
}
else
{
setEditRow(editRow + 0x80);
}
}
break; break;
} }
} }