FIX: navigate ordered listbox with keyboard up/down, FEATURE: page up/down, and multi selection with shift + up/down

Comments and code review.
Original from branch page_scroll
unfortunately included code already merged by Jinhao (header_width, etc)
This commit is contained in:
qPCR4vir
2015-04-23 00:32:47 +02:00
parent 3e41a1e3d2
commit c3bf16554c
4 changed files with 607 additions and 346 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -122,14 +122,14 @@ namespace nana
if(metrics_.value <= metrics_.range)
metrics_.value = 0;
else
metrics_.value -= metrics_.range;
metrics_.value -= (metrics_.range-1);
}
else if(buttons::backward == metrics_.what)
{
if(metrics_.peak - metrics_.range - metrics_.value <= metrics_.range)
metrics_.value = metrics_.peak - metrics_.range;
else
metrics_.value += metrics_.range;
metrics_.value += (metrics_.range-1);
}
}
}