FIX: Listbox doesn't handle Home, End. OK in windows
This commit is contained in:
@@ -96,7 +96,8 @@ namespace nana
|
||||
//System Code for OS
|
||||
os_pageup = 0x21, os_pagedown,
|
||||
os_arrow_left = 0x25, os_arrow_up, os_arrow_right, os_arrow_down,
|
||||
os_insert = 0x2D, os_del
|
||||
os_insert = 0x2D, os_del ,
|
||||
os_end = 0x23 , os_home //Pos 1
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -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