FIX: Listbox doesn't handle Home, End. OK in windows
This commit is contained in:
@@ -3294,7 +3294,16 @@ namespace nana
|
||||
|
||||
break;
|
||||
}
|
||||
// case keyboard::
|
||||
case keyboard::os_home:
|
||||
essence_->lister.select_for_all(false);
|
||||
item_proxy::from_display(essence_, {0,0}).select(true);
|
||||
essence_->trace_last_selected_item ();
|
||||
break;
|
||||
case keyboard::os_end:
|
||||
essence_->lister.select_for_all(false);
|
||||
item_proxy::from_display(essence_, essence_->lister.last()).select(true);
|
||||
essence_->trace_last_selected_item ();
|
||||
break;
|
||||
|
||||
default:
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user