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:
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user