Fixed issues that jumping to bookmark, next key and 8 steps didn't save the key that one is entering

Also fixed another small bug that selection wasn't correctly updated when jumping with bookmarks

Closes #71
This commit is contained in:
Daniel Collin 2013-01-12 23:14:49 +01:00
parent 647e6e2f40
commit b71f77ec1b

View File

@ -1208,6 +1208,7 @@ static void onTrackSide(enum ArrowDirection dir, bool startOrEnd, enum Selection
static void onBookmarkDir(enum ArrowDirection dir)
{
TrackData* trackData = getTrackData();
TrackViewInfo* viewInfo = getTrackViewInfo();
int row = getRowPos();
if (dir == ARROW_UP)
@ -1215,6 +1216,8 @@ static void onBookmarkDir(enum ArrowDirection dir)
else
row = TrackData_getNextBookmark(trackData, row);
viewInfo->selectStartRow = viewInfo->selectStopRow = row;
setRowPos(row);
}
@ -1317,6 +1320,12 @@ void Editor_menuEvent(int menuItem)
switch (menuItem)
{
case EDITOR_MENU_ENTER_CURRENT_V :
case EDITOR_MENU_ROWS_UP :
case EDITOR_MENU_ROWS_DOWN :
case EDITOR_MENU_PREV_BOOKMARK :
case EDITOR_MENU_NEXT_BOOKMARK :
case EDITOR_MENU_PREV_KEY :
case EDITOR_MENU_NEXT_KEY :
case EDITOR_MENU_PLAY :
{
if (is_editing)