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:
parent
45a9afd6bf
commit
062ee83a9f
@ -970,41 +970,13 @@ LRESULT TrackView::onKeyDown(UINT keyCode, UINT /*flags*/)
|
||||
break;
|
||||
|
||||
case VK_HOME:
|
||||
if (GetKeyState(VK_CONTROL) < 0)
|
||||
{
|
||||
setEditRow(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
int remainder = editRow % 0x80;
|
||||
if(remainder)
|
||||
{
|
||||
setEditRow(editRow - remainder);
|
||||
}
|
||||
else
|
||||
{
|
||||
setEditRow(editRow - 0x80);
|
||||
}
|
||||
}
|
||||
if (GetKeyState(VK_CONTROL) < 0) setEditTrack(0);
|
||||
else setEditRow(0);
|
||||
break;
|
||||
|
||||
case VK_END:
|
||||
if (GetKeyState(VK_CONTROL) < 0)
|
||||
{
|
||||
setEditRow(rows-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
int remainder = editRow % 0x80;
|
||||
if(remainder)
|
||||
{
|
||||
setEditRow(0x80 + editRow - remainder);
|
||||
}
|
||||
else
|
||||
{
|
||||
setEditRow(editRow + 0x80);
|
||||
}
|
||||
}
|
||||
if (GetKeyState(VK_CONTROL) < 0) setEditTrack(getTrackCount() - 1);
|
||||
else setEditRow(rows - 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user